Article View: borland.public.jbuilder.java.swing
Article #8073jTextField and Focus
From: James A. Schulz
Date: Wed, 22 Nov 2000 00:00
Date: Wed, 22 Nov 2000 00:00
13 lines
843 bytes
843 bytes
At startup, I want the focus to go to the one and only jTextField in my app,
so I tried:
/**Start the applet*/
public void start() {
jTextField1.requestFocus();
}
This works but it also disables the arrow keys, the Home and End key etc.
What am I doing wrong?
James
Technical Details
Message-ID:
<8vh369$5cr7@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9176425f92c7335a,start X-Google-Attributes: gid111d45,public From: "James A. Schulz" <jaschulz@wiseware.com> Subject: jTextField and Focus Date: 2000/11/22 Message-ID: <8vh369$5cr7@bornews.inprise.com> X-Deja-AN: 696747600 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "James A. Schulz" <jaschulz@wiseware.com> Newsgroups: borland.public.jbuilder.java.swing