Article View: borland.public.jbuilder.java.swing
Article #7656JButton and Focus Question
From: James A. Schulz
Date: Wed, 20 Dec 2000 13:22
Date: Wed, 20 Dec 2000 13:22
13 lines
1263 bytes
1263 bytes
What is the right way to prevent a JButton from ever receiving the focus. I
have tried setting requestFocusEnabled to FALSE, but that doesn't work. I
also tried adding the following to my code:
myJButton.isFocusTraversable(){
return false;
}
but that doesn't do anything either.
I'm stuck. Can anyone help?
James
Technical Details
Message-ID:
<91qbm2$7ug5@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d51577e542f3b18b,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-20 05:20:11 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: "James A. Schulz" <jaschulz@wiseware.com> Newsgroups: borland.public.jbuilder.java.swing Subject: JButton and Focus Question Date: Wed, 20 Dec 2000 07:22:46 -0600 Organization: Another Netscape Collabra Server User Lines: 15 Message-ID: <91qbm2$7ug5@bornews.inprise.com> Reply-To: "James A. Schulz" <jaschulz@wiseware.com> NNTP-Posting-Host: user-33qtc0i.dialup.mindspring.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200