Article View: borland.public.jbuilder.java.swing
Article #9755Re: Focus Lost Event
From: VS
Date: Wed, 19 Jan 2000 00:00
Date: Wed, 19 Jan 2000 00:00
30 lines
1111 bytes
1111 bytes
Ernesto Basc�n schrieb:
> Hi...
>
> I want to validate a JTextField entry when it losses focus, if the value
> is right,
> I want to give the focus to the next focusable component, otherwise I
> want my
> JTextField keep the focus.
>
> I added a FocusListener to the text field; did override the focusLost
> method, but
> my text field cannot recover the focus again.
>
> Thanx in advance
>
> Saludos
>
> Ernesto
Hi,
SwingUtilities.invokeLater(new Runnable(){
public void run() {
testField.requestFocus();
}
});
Bye.
Technical Details
Message-ID:
<3885C936.4ADD96A4@ibmt.fhg.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<387C8352.174553A5@linux.ucbcba.edu.bo>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,e21fc3e45ae60fbc X-Google-Attributes: gid111d45,public From: VS <vatima@ibmt.fhg.de> Subject: Re: Focus Lost Event Date: 2000/01/19 Message-ID: <3885C936.4ADD96A4@ibmt.fhg.de> X-Deja-AN: 574698481 Content-Transfer-Encoding: 8bit References: <387C8352.174553A5@linux.ucbcba.edu.bo> X-Accept-Language: de Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing