File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes help with keylistener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help with keylistener" Watch "help with keylistener" New topic
Author

help with keylistener

Talal Mohammed
Greenhorn

Joined: Nov 26, 2011
Posts: 13
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

Joined: May 03, 2008
Posts: 4543
    
    5

Use a DocumentListener.


luck, db
There are no new questions, but there may be new answers.
Talal Mohammed
Greenhorn

Joined: Nov 26, 2011
Posts: 13
thanks man, i ll research about this document listener ;),
if any of you guys have any ideas, im open to new ideas.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with keylistener