aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTextArea Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea Problem" Watch "JTextArea Problem" New topic
Author

JTextArea Problem

raph1979
Greenhorn

Joined: May 30, 2001
Posts: 3
Hi programmer experts!
I have a JTextArea that i just figured out how i can take each line of the JtextArea individually. These line are some path to a files. Example of what is in my JTextArea: C:\research\hello.doc
C:\research\demo.doc
My question is after saving these line, when i re-open this JtextArea, I want to allo the user to clic on the line of its choice to do some event, so how can i do this.
Thanks in advance
Raph
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Wouldn't it be better to use a JList, or JComboBox? This sort of behavior is already built in...

-Nate

P.S. - Your name needs to follow the JavaRanch naming convention... Please re-register with a valid user name ( first name + space + last name ). Thank you.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextArea Problem