aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTextArea + ActionListener 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 + ActionListener" Watch "JTextArea + ActionListener" New topic
Author

JTextArea + ActionListener

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
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"raph1979",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in again with a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
mohana konakanchi
Ranch Hand

Joined: May 16, 2001
Posts: 67
Hi Frank
There must be a way to make sure, user name has two words, while registering or posting the new thread.
So many times I will go to threads like this, thinking that ..
"I am going to get some solution", but reply says about user names...
I think It will helpfull for all. If we can find out way to filter them at some level, instead of giving reply about username
every time
what do you say?
Mohana
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Raph,
Your best bet would be to place the newly stored text into a list then the user can go ahead and choose any line.
Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextArea + ActionListener