i need to know how to test if some text in a JTextArea is selected or not...wondering why the isSelected() method doesn't work
JTextArea textArea = new JTextArea( 10, 15 );
//I type some text on it
if( theText.isSelected() )
String selectedText = getSelectedText();
else
String theText = textArea.getText();
WHY WON'T THIS WORK?!
Thanks