This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getselected

 
satya satish
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to get a text selected as soon as the word typed
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://java.sun.com/docs/books/tutorial/uiswing/
 
Pavan Kumar Srinivasan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep listening to the textComponent's DocumentModel and use JTextComponent's selection methods..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic