Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Disable enter key in TextArea

843805Jan 26 2007 — edited Jan 26 2007
Hi,
I need of a TextComponent in which the text can be inserted only sequentially, orizzontally;
without the possibility to go at the next line with the enter key command,
or pasting text blocks with more lines.

Practically, the Textfield do this, but I can't see all text I've written, if text is very long.

I want to display text on more lines, through wrap, like in a JTextArea, but I want the text must be inserted orizontally, char by char.

Thank you in advance.

MargNat
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2007
Added on Jan 26 2007
1 comment
205 views