Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Move to next line.

 
Mathew Mintalm
Ranch Hand
Posts: 103
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I guess its simple question, but i can find answer. So for example I have button with Action:

textArea.insert("Sample Text");

And now I would like to move to next line automatically.

How can i do it?

textArea - its my JTextArea

/edit - ok sorry, found it ( "\n" )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic