Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 11092
13
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