Hi,
I've implemented a ListCellRenderer panel, that contains among other
components a JCheckBox to visualise the 'selected' state of the
elements in a JList object. I'm wondering if there is a way to
directly change the selection state of the checkbox using the mouse.
As the list is implemented now, a mouse click just selects the list
element itself, but I've found no way yet to directly change the state
of the checkbox. I could add a MouseListener to the list and process a
double click to alter the checkbox, but I'm wondering if there is a
better way using a single mouseclick.
Thanks in advance.

Signature
Luc Van Bogaert
Michael Dunn - 30 Nov 2006 04:17 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> double click to alter the checkbox, but I'm wondering if there is a
> better way using a single mouseclick.
http://www.objects.com.au/java/examples/swing/CheckBoxList2.do
Luc Van Bogaert - 30 Nov 2006 14:56 GMT
> http://www.objects.com.au/java/examples/swing/CheckBoxList2.do
Thanks!

Signature
Luc Van Bogaert