🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #13179

button.requestFocus()

#13179
From: Alex Humphreys
Date: Thu, 17 Sep 1998 00:00
10 lines
829 bytes
I have a dialog with a button control on it which I'd like to give focus
to when the screen is created.  Unfortunately, calling
mybutton.requestFocus() doesn't seem to do anything--something else has
the focus and it takes one tab to get to mybutton.

Any ideas what I can do to give mybutton the Focus to begin with?

thanks.

alex
Technical Details
Message-ID: <36017175.7EFAA9EE@sema4.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b224f55eb85475a3,start
X-Google-Attributes: gid111d45,public
From: Alex Humphreys <ahumphreys@sema4.com>
Subject: button.requestFocus()
Date: 1998/09/17
Message-ID: <36017175.7EFAA9EE@sema4.com>
X-Deja-AN: 392166019
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.swing