Click to See Complete Forum and Search --> : Java Programming


February 25th, 2000, 04:16 PM
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?

kib63613
February 25th, 2000, 06:23 PM
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

February 28th, 2000, 11:34 AM
Thanks, it works.