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

JTextArea + ActionListener


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

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at .
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.

Read about me at ~ 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?
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.
I agree. Here's the link:
subject: JTextArea + ActionListener
It's not a secret anymore!