Article View: borland.public.jbuilder.java.swing
Article #7678Re: JButton and Focus Question
From: John McGrath TeamB
Date: Wed, 27 Dec 2000 06:11
Date: Wed, 27 Dec 2000 06:11
21 lines
1316 bytes
1316 bytes
On Wed, 20 Dec 2000 07:22:46 -0600, James A. Schulz wrote:
> 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;
> }
Have you tried doing both? That worked for me.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.14ab4129dfbdcac8989de4@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mailReferences:
<91qbm2$7ug5@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d51577e542f3b18b X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-26 22:09:58 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: JButton and Focus Question Date: Wed, 27 Dec 2000 01:11:10 -0500 Organization: Another Netscape Collabra Server User Lines: 21 Message-ID: <MPG.14ab4129dfbdcac8989de4@forums.borland.com> References: <91qbm2$7ug5@bornews.inprise.com> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30