🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to control focus ?

#9537
From: Shaomei Ruan
Date: Thu, 09 Mar 2000 00:00
12 lines
857 bytes
jTextField1.requestFocus();

Petr Kozelka wrote:
> 
> Hello,
> 
> I am quite new to building GUI in JAVA so I have just a stupid, very basic
> question:
> How can I programmatically set focus to a specific control, for example
> JTextField, inside a JDialog ?
> 
> Thanks.
Technical Details
Message-ID: <38C847A7.988CF795@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8a88dp$f6f1@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2109ba7cebc5f96e
X-Google-Attributes: gid111d45,public
From: Shaomei Ruan <sruan@home.com>
Subject: Re: how to control focus ?
Date: 2000/03/09
Message-ID: <38C847A7.988CF795@home.com>
X-Deja-AN: 595410357
Content-Transfer-Encoding: 7bit
References: <8a88dp$f6f1@bornews.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: sruan@home.com
Newsgroups: borland.public.jbuilder.java.swing