Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox with multiple checkBoxes  RSS feed

 
cchetan jain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends..i want to use multiple checkBoxes in my jComboBox..can i use it ..if yes,then please tell me how??
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please elaborate on what do you mean multiple check boxes.
Do you want to
1) Display a row of checkboxes per renderer
2) Display checkboxes as items, which can be multiple selected?

If it is the latter, it is not possible. JComboBox allows single selection. For multiple selection, consider JList.

In case you don't know, this is how you provide a renderer.
 
cchetan jain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah.. i want to use the later one..k now i ll try for the jlist.
thanks for concern
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!