🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18236

Re: Having trouble focusing - AMMENDED

#18236
From: David Young
Date: Mon, 20 Jul 1998 00:00
27 lines
1885 bytes

David Young wrote:

> 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.
>

I misdescribed the problem slightly, rather than hitting the "Tab" key
repeatedly, it is actually only necessary to hit it once.  Even though the
blinking cursor remains in the first field, as it was when the dialog
started, after either clicking on the field or htting the "Tab" once, the
field obtains focus and accepts data entry.

There is no other change in appearance to indicate the field accepts data
so, in addition to the annoying need to hit extra keys or mouse clicks, the
user has no way of knowing that the either accepts or does not accept input
apart from the fact that nothing appears in the field when keys are hit.

Once again, thanks for any info.
Technical Details
Message-ID: <35B3A7DF.106AD027@icis-inc.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35B3A28D.FE6714ED@icis-inc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,44d86fdcb5f58ce1
X-Google-Attributes: gidf74b3,public
From: David Young <day@icis-inc.com>
Subject: Re: Having trouble focusing - AMMENDED
Date: 1998/07/20
Message-ID: <35B3A7DF.106AD027@icis-inc.com>
X-Deja-AN: 373276492
Content-Transfer-Encoding: 7bit
References: <35B3A28D.FE6714ED@icis-inc.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language