Article View: borland.public.jbuilder.java.swing
Article #911Re: buttonGroup
From: Lori M Olson [TeamB]
Date: Mon, 22 Nov 2004 21:49
Date: Mon, 22 Nov 2004 21:49
43 lines
2408 bytes
2408 bytes
Paul Furbacher [TeamB] wrote:
>
> Just had an idea after all these years of
> manually adding buttons to a button group:
>
> Create a descendent of JPanel, override the
> "addImpl(...)" method, calling super.addImpl(...),
> and then adding the component, if an instanceof
> JButton, to a ButtonGroup member. Add a getButtonGroup()
> method to the special panel.
>
> There are other implementation details, but
> that might be a good start.
>
> This way, after adding this component to the
> Palette, you could do what you want to do
> in the Designer.
>
>
LOL. I was just explaining this problem to someone who isn't a
programmer, and the first question was something like, ... "So why
doesn't someone write a panel that acts like a button group...?"
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<41a25ecd@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41a21a3b$1@newsgroups.borland.com> <41a2219f$1@newsgroups.borland.com> <41a256cf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,9340318334e86a06 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 22 Nov 2004 14:49:02 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax; CDonDemand-Dom) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: buttonGroup References: <41a21a3b$1@newsgroups.borland.com> <41a2219f$1@newsgroups.borland.com> <41a256cf$1@newsgroups.borland.com> In-Reply-To: <41a256cf$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <41a25ecd@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101160141 142.179.181.200 (22 Nov 2004 13:49:01 -0700) Lines: 44 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail