🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetFocus()

#8400
From: Ali Demir
Date: Mon, 18 Sep 2000 00:00
19 lines
1330 bytes
All GUI related code should be executed from the event dispatch thread.
SwingUtilities.InvokeLater
SwingUtilities.InvokeAndWait
help you do that from other threads.
Ali.



"Tor Iver Wilhelmsen" <tor.wilhelmsen@sds.no> wrote in message
news:uaed6go0m.fsf@sds.no...
> "Shane Stump" <ShaneStump@tanstaaflSoftware.com> writes:
>
> > Anyway, I am assuming there is no equivalent to the GetFocus() command
other
> > than to track events myself within the app!
>
> There is (grabFocus()), but the problem is what thread you execute
> this in: When a component grabs focus, previous component will lose
> it, which will trigger the FocusManager, etc.
Technical Details
Message-ID: <39c67eef$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39c023b6$1_1@dnews> <39c33836$1_1@dnews> <39c35bc9$1_1@dnews> <MPG.142e431c96622a28989b45@forums.borland.com> <39c49e72$1_2@dnews> <uaed6go0m.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5fce9644c11175fd
X-Google-Attributes: gid111d45,public
From: "Ali Demir" <demir.4@osu.edu>
Subject: Re: GetFocus()
Date: 2000/09/18
Message-ID: <39c67eef$1_2@dnews>
X-Deja-AN: 671352477
References: <39c023b6$1_1@dnews> <39c33836$1_1@dnews> <39c35bc9$1_1@dnews> <MPG.142e431c96622a28989b45@forums.borland.com> <39c49e72$1_2@dnews> <uaed6go0m.fsf@sds.no>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Trace: 18 Sep 2000 13:45:35 -0800, 192.147.88.2
X-MSMail-Priority: Normal
Reply-To: "Ali Demir" <demir.4@osu.edu>
Newsgroups: borland.public.jbuilder.java.swing