Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea + ActionListener

 
raph1979
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
mohana konakanchi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic