This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Could i use a JCheckBox as a item of JComboBox? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Could i use a JCheckBox as a item of JComboBox?" Watch "Could i use a JCheckBox as a item of JComboBox?" New topic
Author

Could i use a JCheckBox as a item of JComboBox?

Ronyn Woods
Greenhorn

Joined: May 16, 2001
Posts: 27
I wanna use a JCheckBox as a item of JComboBox,could i do so?
Arjun Anand
Greenhorn

Joined: May 24, 2001
Posts: 25
Yes, You can. You have to provide a Custom Renderer to display the items as checkboxes instead of Labels (which is the default).

Arjun


Arjun
 
jQuery in Action, 2nd edition
 
subject: Could i use a JCheckBox as a item of JComboBox?