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

Go to topic 8128

Return to index page 976
Return to index page 975
Return to index page 974
Return to index page 973
Return to index page 972
Return to index page 971
Return to index page 970
Return to index page 969
Return to index page 968
Return to index page 967