🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Is requestFocus() allowed in a JDialog?

#11648
From: Paul Waldo
Date: Tue, 04 May 1999 00:00
10 lines
908 bytes
Hi all,

I'm using Borland's JDK 1.1.6 and I am having difficulty setting the
focus in a JDialog.  I traced into the requestFocus call, and saw that
the component must be visible, so just for fun I made the dialog
non-modal and called requestFocus after calling setVisible(true).  It
still doesn't work.  Is it possible to set the focus within a JDialog?
TIA

Paul
Technical Details
Message-ID: <372F4C8B.95E9445F@bellatlantic.net>
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,bd6111645722c068,start
X-Google-Attributes: gid111d45,public
From: Paul Waldo <pwaldo@bellatlantic.net>
Subject: Is requestFocus() allowed in a JDialog?
Date: 1999/05/04
Message-ID: <372F4C8B.95E9445F@bellatlantic.net>
X-Deja-AN: 474028701
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing