Re: Set keyboard focus to Applet when it is loaded
- From: Felix Natter <fnatter@xxxxxxx>
- Date: Sat, 26 Aug 2006 17:42:34 +0200
"Michael Dunn" <m_odunn@xxxxxxxxx> writes:
"Felix Natter" <fnatter@xxxxxxx> wrote in message
news:87ejv5z25m.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx
hi,
I have an applet with a JTextArea and I would like the keyboard focus to
be in that JTextArea as soon as the applet is loaded (so that the user
can immediately start typing).
textarea.requestFocusInWindow()1) put this in start(), or
this doesn't seem to work.
2) add it to a timer, setRepeats(false), 150ms should do
This works great, thanks a lot!
greetings,
--
Felix Natter
.
- Follow-Ups:
- Re: Set keyboard focus to Applet when it is loaded
- From: Andrew Thompson
- Re: Set keyboard focus to Applet when it is loaded
- References:
- Set keyboard focus to Applet when it is loaded
- From: Felix Natter
- Re: Set keyboard focus to Applet when it is loaded
- From: Michael Dunn
- Set keyboard focus to Applet when it is loaded
- Prev by Date: Re: Set keyboard focus to Applet when it is loaded
- Next by Date: html in a textfield
- Previous by thread: Re: Set keyboard focus to Applet when it is loaded
- Next by thread: Re: Set keyboard focus to Applet when it is loaded
- Index(es):
Relevant Pages
|