Article View: borland.public.jbuilder.java.swing
Article #12221Re: JList and JCheckBox
From: Vladimir Olenin
Date: Sun, 31 Jan 1999 00:00
Date: Sun, 31 Jan 1999 00:00
35 lines
1822 bytes
1822 bytes
Hi, Vas,
Can't say smth definite, but if i'm not mistaken, you should do smth
with data. To annouce that it's boolean. There is a good tutorial on how
to embed checkbox in JTable on javasoft site. The turorial is really
great.
Thought it could help,
Vladimir
Vasudevan Srinivasan wrote:
>
> Hi,
> I am trying to create a JList with JCheckBoxes instead of usual labels,
> making multiple selections more user friendly. I am having a problem
> when I implemented the ListCellRenderer. It seems the
> getListCellRenderer component is called twice (1 for pressing the mouse
> and 2 for releasing it) and also the isSelected value is false when the
> focus is out of the current check box (even though there is a seperate
> cellHasFocus param). so the list box behaves as if only one can be
> selected. I tried capturing mouseClick events to prevent press and
> release, but they are not captured at all. Is there any way this can be
> implemented?
>
> Thanks
> Vasu
--
>~~~~~~~~<=============>~~~~~~~~<
Be yourself no matter what they say...
Join in Java community now!
http://www.geocities.com/SiliconValley/Heights/9815
>~~~~~~~~<=============>~~~~~~~~<
Technical Details
Message-ID:
<36B393E7.34F257A5@collegemail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36B11588.99200A76@worldnet.att.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,944f205c85217f2b X-Google-Attributes: gid111d45,public From: Vladimir Olenin <keenonjava@collegemail.com> Subject: Re: JList and JCheckBox Date: 1999/01/31 Message-ID: <36B393E7.34F257A5@collegemail.com> X-Deja-AN: 438851246 Content-Transfer-Encoding: 7bit References: <36B11588.99200A76@worldnet.att.net> To: vasya10@worldnet.att.net X-Accept-Language: en,ru Content-Type: text/plain; charset=koi8-r Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing