File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

help with keylistener

Talal Mohammed

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.

Darryl Burke

Joined: May 03, 2008
Posts: 5115

Use a DocumentListener.

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

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:
subject: help with keylistener
It's not a secret anymore!