This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes getselected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "getselected" Watch "getselected" New topic


satya satish
Ranch Hand

Joined: Oct 20, 2008
Posts: 41
how to get a text selected as soon as the word typed
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10651

Originally posted by satya satish:
how to get a text selected as soon as the word typed

From your questions, I think you really need to take out time to go through this tutorial:

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Pavan Kumar Srinivasan

Joined: Sep 17, 2008
Posts: 27
Keep listening to the textComponent's DocumentModel and use JTextComponent's selection methods..
rocket mass heater kickstarter
subject: getselected