I have three checkBoxes: labelled Monday, Tuesday, and Wednesday, to be used to render one JComboBox. When the JComboBox is clicked, these three checkBoxes should appear in the pull down menu, and they should be allowed to be multi-selected.
I had a question on how to use JCheckBox as CellRenderer in JList before,
I'm having trouble understanding exactly what you are trying to do. You want each item to have a checked-or-not-checked flag, but you also want combo-boxy behavior of being able to make one of the items (or a user-typed item) become the selected item?
But anyway, the popup part of the combo box is a JPopupMenu. Actually it's up to the LnF, and most or all of them use JPopupMenu, but that's what makes it a bit difficult to get your hands on it.
Sorry I wasn't making myself very clear. What I want is an uneditable JComboBox with a pulldown menu populated by JCheckBoxes. These JCheckBoxes can be multi-selected.
I have figured out how to do this by searching online, and here is an adapted and quoted example:
Note: the key part is one of the methods in the class CheckComboBox: setPopupVisible(boolean flag). It must be overridden to empty, because the default setPopupVisible(boolean flag) will close the pulldown list each time you make a selection with the JCheckBoxes.