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.
****************************************************
CAUTION: freakingly-low quality code
****************************************************
****************************************************
END: freakingly-low quality code
****************************************************
[ February 26, 2007: Message edited by: Biliang Zhou ]