🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17383

Re: Button + Checkbox + CheckboxGroup == loads of fun

#17383
From: William Yu
Date: Mon, 16 Nov 1998 00:00
35 lines
2286 bytes
Paul Furbacher wrote:
> 
> William Yu wrote:
>
> > The idea was that my CheckboxButtons would create phantom Checkboxes to
> > link to a CheckboxGroup.  And when the state changed due to a selection,
> > the state change listener would notify CheckboxButton.  Unfortunately, [...]
> 
> If I understand this correctly, you want to fill a listbox
> with buttons, and have those buttons belong to some group manager.
> What about "com.sun.java.swing.ButtonGroup"?

Swing is out of the question until IE and Netscape both support it in
their browsers. And nope, no Sun Plugin for my clients either. The less
my clients have to worry about, the more sellable my product will be.
(If it means I have to write a few custom components, then I have to
write a few custom components.)

> Or, why not model your approach after that of the JBCL "CheckboxPanel"
> which essentially adds the "itemMulticaster" to each of the elements
> in the panel?  The "CheckboxPanel.addItemListener()" method adds
> a listener to the "itemMulticaster".  The effect is that when
> the item state is altered, the item multicaster is notified and
> it in turn notifies the component that was registered as a listener,
> e.g., your frame.

Yes. I could do that. Heck, I can think of several ways to accomplish
the overall picture. And I probably will do so anyways so I can create a
base class to derive multiple types of components from.

However, I still do want to know if there is an answer to my original
question. In part, it'll allow me to put something in *fast* so my main
development track can continue. But mostly, to understand more about how
Java  works.
Technical Details
Message-ID: <3650B77C.CAD1F182@Bigfoot.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <364ED33A.4C99CE@Bigfoot.com> <36506AD9.5B65D538@bilbo.bio.purdue.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ad23d109ed8251a3
X-Google-Attributes: gidf74b3,public
From: William Yu <William_Yu@Bigfoot.com>
Subject: Re: Button + Checkbox + CheckboxGroup == loads of fun
Date: 1998/11/16
Message-ID: <3650B77C.CAD1F182@Bigfoot.com>
X-Deja-AN: 412575985
Content-Transfer-Encoding: 7bit
References: <364ED33A.4C99CE@Bigfoot.com> <36506AD9.5B65D538@bilbo.bio.purdue.edu>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: American All-Risk Group (AARG)
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language