java textarea problem

TJN23

Golden Member
May 4, 2002
1,670
0
0
having problem on my java project:

created a JTextArea with a user input of text...set the text to a String variable.

i want to check if the text is selected or not:

if (the text is selected)
set the variable to only the selected text
else
set the variable the textArea.getText() //all the text on the textArea

having problems checking to see if the text is selected or not?

plz help!!

thanks!
 

Iron Woode

Elite Member
Super Moderator
Oct 10, 1999
30,875
12,380
136
You realize you could just use Jamba and create what you need in a wysiwyg environment.