Article View: borland.public.jbuilder.java.swing
Article #259requestFocus and JTextField
From: Bruce Houghtron
Date: Tue, 12 Jun 2007 16:04
Date: Tue, 12 Jun 2007 16:04
16 lines
1641 bytes
1641 bytes
To all; I'll be dammed if I can get Focus on a JTextField at Load Time. I've tried everything(it seems). requestFocus, requestFocusInWindow, requestFocus(true).... I have two JDialog's, one with a JList, and one without. The one without works fine. One of the symptoms is that when I key something in, just after load time, I get an "valueChanged" from the ListSelectionListener. I put a "requestFocus()" then a getFocusOwner() after the init is complete. The getFocusOwner() shows "null". Like I say, it seems as if I have tried everything and read everything I can get my hands on... So far no luck.. Bruce Houghton
Technical Details
Message-ID:
<466ec402$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,cd79719f41c7c23a,start X-Google-Attributes: gid111d45,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Bruce Houghtron" <bhought@globalserve.net> From: "Bruce Houghtron" <bhought@globalserve.net> Newsgroups: borland.public.jbuilder.java.swing Subject: requestFocus and JTextField Date: Tue, 12 Jun 2007 12:04:25 -0400 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 207.112.93.126 Message-ID: <466ec402$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181664258 207.112.93.126 (12 Jun 2007 09:04:18 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail