It's not a secret anymore!*
The moose likes Beginning Java and the fly likes Text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Text " Watch "Text " New topic


Sanapathi Madhuri

Joined: Mar 02, 2002
Posts: 4
I would like to know if there is any method or event to get the highlighted ( selected ) text in a textbox ???
Thanx a bunch !
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Check out the API, for getSelectedText().

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Text