🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8326

Re: How to setFocus on a jTextField

#8326
From: Frank Behrens
Date: Wed, 20 Sep 2000 00:00
18 lines
998 bytes
dreading@chelseasystems.com (Dan Reading)  wrote on 19.09.00:
> Request the focus at the end of your thread like this:
>
> SwingUtilities.invokeLater(new Runnable() {
>
>    public void run() { jTextField.requestFocus();}
>
> });


Or in the "windowOpened" event handler. It works for me in all cases.

Regards,
   Frank
--
Frank Behrens, Osterwieck, Germany
e-mail private: <frank@sax.sax.de>
PGP-key 0x5B7C47ED on public servers available.
Technical Details
Message-ID: <7mF15VqjaPB@pinky.sax.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8povvk$7ln2@bornews.borland.com> <39c7dd0e_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a2771b435264731c
X-Google-Attributes: gid111d45,public
From: frank@pinky.sax.de (Frank Behrens)
Subject: Re: How to setFocus on a jTextField
Date: 2000/09/20
Message-ID: <7mF15VqjaPB@pinky.sax.de>
X-Deja-AN: 671952580
X-PGP-Fingerprint: 4C 2F B2 77 57 22 65 4D  55 9E A6 D6 64 5F 51 5A
References: <8povvk$7ln2@bornews.borland.com> <39c7dd0e_2@dnews>
Organization: private, SaxNet e.V.
Reply-To: frank@sax.sax.de
Newsgroups: borland.public.jbuilder.java.swing