Re: Set keyboard focus to Applet when it is loaded
- From: "Michael Dunn" <m_odunn@xxxxxxxxx>
- Date: Fri, 25 Aug 2006 19:34:47 +1000
"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
2) add it to a timer, setRepeats(false), 150ms should do
.
- Follow-Ups:
- Re: Set keyboard focus to Applet when it is loaded
- From: Felix Natter
- Re: Set keyboard focus to Applet when it is loaded
- References:
- Set keyboard focus to Applet when it is loaded
- From: Felix Natter
- 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: Re: transparent colors and setXORMode doesn't work together
- 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
|