🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2436

Newbie Question

#2436
From: James A. Schulz
Date: Wed, 29 Nov 2000 00:00
12 lines
968 bytes
I have a little Swing applet comprising a few buttons and a text field.  I
want the focus to start on the text field and stay there (i.e. it will never
go to the buttons- which are operated by accelerator keys), but I don't see
how to do that.  I have tried myTextField.requestDefaultFocus() and
myTextField.requestFocus (in both init() and jbInit() ), but neither does
the job.

Can anyone help?

thanks,

James
Technical Details
Message-ID: <903rnn$4q41@bornews.inprise.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: 1089d0,2d0d8c90dee35058,start
X-Google-Attributes: gid1089d0,public
From: "James A. Schulz" <jaschulz@wiseware.com>
Subject: Newbie Question
Date: 2000/11/29
Message-ID: <903rnn$4q41@bornews.inprise.com>
X-Deja-AN: 699261521
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "James A. Schulz" <jaschulz@wiseware.com>
Newsgroups: borland.public.jbuilder.java.api