🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JDialog- request focus on textfield when setVisible(true)

#10471
From: Rekah Venkatesh
Date: Mon, 04 Oct 1999 00:00
12 lines
1032 bytes
I have a password dialog that extends from a JDialog. I would like to
have to cursor positione don the username JTextfiled when dialog is
displayed. On JDk-1.1 I overwrote addNotify() method and set teh focus
on the username textfield. IT used to work, but now with JB3 it stopped
working!.

I have tried pack (not preferable), component_Shown() event, and
addNotify(0 to realize all the dialogs peer. But none of them seem to
work. Does anybody have the same problem ?.

Thanks in  advance.
Rekha
Technical Details
Message-ID: <37F8BFC6.CDBFF307@alta-oh.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,e674be66dd74034c,start
X-Google-Attributes: gid111d45,public
From: Rekah Venkatesh <rekha@alta-oh.com>
Subject: JDialog- request focus on textfield when setVisible(true)
Date: 1999/10/04
Message-ID: <37F8BFC6.CDBFF307@alta-oh.com>
X-Deja-AN: 532663200
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