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