Article View: comp.lang.java.gui
Article #14How do I make a component receive focus?
From: Burton Tjin
Date: Sat, 17 Mar 2001 03:53
Date: Sat, 17 Mar 2001 03:53
6 lines
1252 bytes
1252 bytes
How do I make a JTextField receive focus as soon as my program starts? Will calling setFocus() in my class' constructor work ? Thanks Burton Tjin
Technical Details
Message-ID:
<3AB2DF77.F0088B71@yahoo.com.DoNotSpam>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.maxwell.syr.edu!sunqbc.risq.qc.ca!news3.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fbe9c,193331a5abdaa0a6,start X-Google-Attributes: gidfbe9c,public X-Google-Thread: 10fd6d,193331a5abdaa0a6,start X-Google-Attributes: gid10fd6d,public X-Google-ArrivalTime: 2001-03-16 19:58:04 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.maxwell.syr.edu!sunqbc.risq.qc.ca!news3.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Message-ID: <3AB2DF77.F0088B71@yahoo.com.DoNotSpam> From: Burton Tjin <burtontjin@yahoo.com.DoNotSpam> X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java Subject: How do I make a component receive focus? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 6 Date: Sat, 17 Mar 2001 03:53:29 GMT NNTP-Posting-Host: 64.230.26.161 X-Trace: news20.bellglobal.com 984801209 64.230.26.161 (Fri, 16 Mar 2001 22:53:29 EST) NNTP-Posting-Date: Fri, 16 Mar 2001 22:53:29 EST Organization: Sympatico