I'm planning on combining JMenu and JCheckBoxMenuItem so I can have: (1) a popup menu containing instances of this new component. (2) this new component would have a check box on the left as well as being able to expand to the right and show other sub-menus (like a regular JMenu)
I had a couple questions:
First, am I reinventing the wheel? / Has this been done before?
Second, I'm trying to figure out how swing knows how to get the UI class for the extended Component class? (I see that JMenu for example has a String uiClassID member that's somehow used for that, but it's not the exact class name... I debugged it to a HashTable lookup in UIDefaults)