|
Subject:
|
Setting focus on a JTextField when an applet runs
|
|
Posted By:
|
cs21cw
|
Post Date:
|
1/1/2004 10:55:11 AM
|
Hey.
I have been having trouble trying to set focus onto a jtextfield when my applet runs. I have tried:
textfield.requestFocus(); textfield.grabFocus(); etc.
How do I set the focus as soon as the applet runs? I have searched the net for ages and nobody seems to have an answer for me.
Thanks :)
Chris
|
|
Reply By:
|
Martyn
|
Reply Date:
|
1/1/2004 4:08:48 PM
|
Set it in the applet's init() method.
Cheers
Martyn
|