Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could i use a JCheckBox as a item of JComboBox?

 
Ronyn Woods
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanna use a JCheckBox as a item of JComboBox,could i do so?
 
Arjun Anand
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, You can. You have to provide a Custom Renderer to display the items as checkboxes instead of Labels (which is the default).

Arjun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic