Article View: borland.public.jbuilder.java.swing
Article #13119Where is focus?
From: Guy Scharf
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
12 lines
855 bytes
855 bytes
I have created a JDialog with three JButtons and two JLabels on it. This is a simple dialog to ask the user to make a choice. When the dialog is displayed, where is the focus? If I press the Tab key, focus moves to the first button. But I would prefer that it be on the first button to begin with. How do I make that happen? I am running JBuilder 2 and Swing 1.0.3. Thanks. Guy
Technical Details
Message-ID:
<360AB611.1D3BB742@swarc.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,1f6f9d6585b5c186,start X-Google-Attributes: gid111d45,public From: Guy Scharf <guy@swarc.com> Subject: Where is focus? Date: 1998/09/24 Message-ID: <360AB611.1D3BB742@swarc.com> X-Deja-AN: 394512145 Content-Transfer-Encoding: 7bit Organization: Software Architects, Inc. Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing