🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to setFocus on a jTextField

#8500
From: Jay Gunderson
Date: Wed, 13 Sep 2000 00:00
10 lines
746 bytes
From jFrame1 I do:

JFrame2 jframe2 = new jFrame2();
jframe2.jTextField1.requestFocus();

Result is that jTestField1 does not get the focus.   I have also tried
setting focus after setVisible in JFrame2, to no avail.  Is there some
way to setfocus?
Thanks,
Jay Gunderson
Technical Details
Message-ID: <8povvk$7ln2@bornews.borland.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,a2771b435264731c,start
X-Google-Attributes: gid111d45,public
From: "Jay Gunderson" <jay.gunderson@concert.com>
Subject: How to setFocus on a jTextField
Date: 2000/09/13
Message-ID: <8povvk$7ln2@bornews.borland.com>
X-Deja-AN: 669408416
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0
Newsgroups: borland.public.jbuilder.java.swing