File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes displaying checkbox in a list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "displaying checkbox in a list" Watch "displaying checkbox in a list" New topic

displaying checkbox in a list

red goliath

Joined: Nov 23, 2001
Posts: 15
How can i display checkboxes ina Jlist.?
If not is ther any alternative method ?.
The check box must be displayed with its corresponding label .Aalso from the list i must be able to know which are all the check boxes that have been ticked ?
Vinod Venugopal
Ranch Hand

Joined: Dec 06, 2000
Posts: 148
Check out this piece of code at
Example of Check box in a list , you have to modify your mouselistener for ur own implementation.

- Vinod<br />-------<br />SCJP2
I agree. Here's the link:
subject: displaying checkbox in a list
It's not a secret anymore!