Getting the highlighted text from a JTextField
843806Apr 8 2008 — edited Apr 8 2008I have a JTextField and a submit button.When ever I enter some text and highlight/select some part of that text and press submit I need to get the highlighted/selected text.
I know this sounds wierd but I have simplified it for the posting.
So basically I need the highlighted text from the JTextField ?I tried the DragEnabled feature but it wont give me the highlighted text?Any suggestions??
Thanks in advance.