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!

Could we write newlines in a JTextField?

800351Oct 28 2007 — edited Oct 30 2007
I'd like to write a kind of newline marker char or char-sequence in a JTextField so that the return value from the getText() could be displayed in multiple lines in a JTextArea.

I don't mean any effort of custom programming. I just like to find a Java and Swing inherent feature.

Am I struggling with an absolute impossible?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2007
Added on Oct 28 2007
6 comments
640 views