Article View: borland.public.jbuilder.java.swing
Article #9044Re: JTextField.requestFocus
From: Ernesto Bascon Pantoja
Date: Wed, 07 Jun 2000 00:00
Date: Wed, 07 Jun 2000 00:00
29 lines
1012 bytes
1012 bytes
Hi:
Try using the SwingUtilities.invokeLater() method:
public void focusLost(FocusEvent e)
{
...
... do what you need
...
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
...
...
component.requestFocus();
}
});
}
That method will execute the "run" method after the execution of the
focusLost event.
I hope it will be hopeful
Saludos
Ernesto
Technical Details
Message-ID:
<393E527A.85C89C59@ucbcba.edu.bo>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<393D34F5.C64FECAE@chello.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e946685483406185 X-Google-Attributes: gid111d45,public From: Ernesto Bascon Pantoja <bascone@ucbcba.edu.bo> Subject: Re: JTextField.requestFocus Date: 2000/06/07 Message-ID: <393E527A.85C89C59@ucbcba.edu.bo> X-Deja-AN: 632159096 Content-Transfer-Encoding: 7bit References: <393D34F5.C64FECAE@chello.at> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: IIIA - UCB Cbba. Mime-Version: 1.0 Reply-To: bascone@ucbcba.edu.bo Newsgroups: borland.public.jbuilder.java.swing