Hi,

I have 2 JTextField and 2 Buttons.

What I want to do is that when I press tab, the focus is passed on to the next control.

For example, when I start the application, I'm at textField1. I press the tab button on the keyboard, the focus is passed to textFied2, later button1 and button2.

Can someone please enlighten me? Thank you.