Article View: borland.public.jbuilder.java.swing
Article #7930Newbie Question
From: James A. Schulz
Date: Wed, 29 Nov 2000 00:00
Date: Wed, 29 Nov 2000 00:00
11 lines
968 bytes
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:
<902umo$6p81@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cc1be83994988aa0,start X-Google-Attributes: gid111d45,public From: "James A. Schulz" <jaschulz@wiseware.com> Subject: Newbie Question Date: 2000/11/29 Message-ID: <902umo$6p81@bornews.inprise.com> X-Deja-AN: 699091043 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.swing