Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea getting text with hard returns  RSS feed

 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program that takes the String from a JTextArea and tokenizes (splitting on spaces) parses does stuff, then sets the string back into the JTextArea. It works fine until I put hard returns in the text area. Why is this? Am I missing something fundamental here?

-Tad
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NM, figured out I need to break it up on the returns and not just the spaces.
My apologies 95% of my java experience is with command line stuff or web-based stuff and Now I have to write a desktop application. So its time to learn all sorts of new, basic? stuff.

-tad
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!