Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes JTextField  and TAB key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextField  and TAB key" Watch "JTextField  and TAB key" New topic
Author

JTextField and TAB key

Mike Johns
Greenhorn

Joined: Mar 01, 2001
Posts: 10
Does anyone have an idea how I can simulate the ENTER key with the TAB key so that my Action Listener will be triggered when I tab from one JTF to another?
Joe Gilvary
Ranch Hand

Joined: May 11, 2001
Posts: 152
How about a KeyAdapter subclass that catches the
Tab key and invokes the same thing your
ActionListener invokes?
HTH,
Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextField and TAB key