Article View: borland.public.jbuilder.java.language
Article #15559Re: How to pre-set focus?
From: Greg Hamer
Date: Wed, 09 Jun 1999 00:00
Date: Wed, 09 Jun 1999 00:00
13 lines
951 bytes
951 bytes
requestFocus(). You may have to wait until the Frames addNotify() happens for it to work. Just override addNotify(), by calling super.addNotify(), then textField.requestFocus(); Vladimir D Bondarenko wrote: > Hi there, > > I have a textField in a Panel added to a Frame. > How can I ensure the textField has focus on application start? > (hands-off TAB key :-)). > > Thanks in advance
Technical Details
Message-ID:
<375E8988.BFF1EEEA@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<375D1261.5E9AE215@azot.com.by>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,62eb93edf71a58c8 X-Google-Attributes: gidf74b3,public From: Greg Hamer <ghamer@borland.com> Subject: Re: How to pre-set focus? Date: 1999/06/09 Message-ID: <375E8988.BFF1EEEA@borland.com> X-Deja-AN: 487533667 Content-Transfer-Encoding: 7bit References: <375D1261.5E9AE215@azot.com.by> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language