• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with keylistener

 
Talal Mohammed
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys, I'm having trouble figuring out how can I use the keylistener in order to 'listen' for keys in-putted into a JTextfield and these keys will trigger a search method through a database, note that these keys are unique so for example I have database with a unique student number, and I want all the other details regarding this student by simply inputting the unique id.
Visual:

http://imageshack.us/f/853/86635707.png/

Thanks!
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a DocumentListener.
 
Talal Mohammed
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks man, i ll research about this document listener ;),
if any of you guys have any ideas, im open to new ideas.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic