Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting the highlighted text from a JTextField

843806Apr 8 2008 — edited Apr 8 2008
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2008
Added on Apr 8 2008
1 comment
151 views