Article View: borland.public.jbuilder.java.language
Article #18234Having trouble focusing
From: David Young
Date: Mon, 20 Jul 1998 00:00
Date: Mon, 20 Jul 1998 00:00
13 lines
1161 bytes
1161 bytes
I have a dialog on which are several JTextField objects. When the dialog is started I had expected the JTextField object that was first "added" to be the one with focus but when I try to enter data, nothing happens! I find I must first either click on the field or hit the "Tab" button enough times to cycle the focus around all the objects on the dialog eventually coming to the desired field. I have tried using "requestFocus()" with no effect. I even verified that the object would accept focus by first testing using the "isFocusTraversable()" method, determining that "requestFocus()" should work. Any suggestions? No information too trivial. Thanks.
Technical Details
Message-ID:
<35B3A28D.FE6714ED@icis-inc.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: f74b3,44d86fdcb5f58ce1,start X-Google-Attributes: gidf74b3,public From: David Young <day@icis-inc.com> Subject: Having trouble focusing Date: 1998/07/20 Message-ID: <35B3A28D.FE6714ED@icis-inc.com> X-Deja-AN: 373265998 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language