File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea Problem" Watch "JTextArea Problem" New topic

JTextArea Problem


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
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
Nathan Pruett

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...


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.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: JTextArea Problem
It's not a secret anymore!