I created a frame with a panel, several textfields and buttons. How can I automatically move the cursor to a specific textfield after clicking a button?
Printable View
I created a frame with a panel, several textfields and buttons. How can I automatically move the cursor to a specific textfield after clicking a button?
you may use Component.requestFocus() method to get the focus of the
specified component. The cursor should stay at that TextField object that
you specified.
good luck
Thanks, it works.