how I can implement enter as tab functionality? when someone pressed enter focus goes to next widget
raminaa niilian
Ranch Hand
Joined: Jul 14, 2005
Posts: 550
posted
0
Hi
Can you please let me know how I can implement Enter as Tab feature, for example in a form with 10 different JTextbox, I want to make it possible to my users to hit the enter when they finished typing content of one JTextbox and g to next JTextbox. Enter should work as TAB.
Thanks
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> Enter should work as TAB.
needs modification if you do not want tab to also work
Bikash Megale
Greenhorn
Joined: Jan 01, 2007
Posts: 6
posted
0
for example in a form with 10 different JTextbox, I want to make it possible to my users to hit the enter when they finished typing content of one JTextbox and g to next JTextbox. Enter should work as TAB.
you can use keyListener if enter key pressed then you can move focus to the desirable component by using requestFocus();
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: how I can implement enter as tab functionality? when someone pressed enter focus goes to next widget