🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.gui
Article #44

Re: Problem with the ButtonGroup

#44
From: Eric Rizzo
Date: Fri, 14 Jan 2000 00:00
20 lines
1600 bytes
George Wilson Mathias wrote:
> 
<snip>
> Can you please tell me how can I de-select all the buttons in a Button
> programmatically. This is really bugging me for a while now.

One option is to create a "dummy" button that is not added to the
containing panel but *is* added to the ButtonGroup.  Then implement a
unselectAll() method that just selects this "invisible" button, thus
making it appear as if no buttons are selected.

Hope this helps,
	Eric

-- 
Eric Nicholas Rizzo
erizzo@tampabay.rr.com
---------------------------------------------------------------
                "Don't make me come down there!"
                                         -God
Technical Details
Message-ID: <387E88DD.9A2F9090@tampabay.rr.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <387DFF96.CACBE2B6@mci.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,45995627a1156786
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,45995627a1156786
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 10a146,45995627a1156786
X-Google-Attributes: gid10a146,public
From: Eric Rizzo <erizzo@tampabay.rr.com>
Subject: Re: Problem with the ButtonGroup
Date: 2000/01/14
Message-ID: <387E88DD.9A2F9090@tampabay.rr.com>
X-Deja-AN: 572389146
Content-Transfer-Encoding: 7bit
References: <387DFF96.CACBE2B6@mci.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@rr.com
X-Trace: typhoon1.tampabay.rr.com 947816884 24.28.37.31 (Thu, 13 Jan 2000 21:28:04 EST)
Organization: RoadRunner - TampaBay
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 13 Jan 2000 21:28:04 EST
Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing,comp.lang.java.programmer