I am creating my own custom combobox like component and I would like to
get the current look and feel's icon for a jcombobox button. I can see
in the java source that there are class for creating this (ie
javax.swing.plaf.metal.MetalComboBoxIcon) so I would like to know how
to grab this icon for use in my button. So far all I have come up with
is to do the following:
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
Object object = defaults.get("what is the key that goes in here?");
Once I get the object do I just cast it to an Icon or is there other
hoops I need to jump through?
Thanks
Totally Beaned!
Dan Andrews - 22 Sep 2006 20:58 GMT
> Object object = defaults.get("what is the key that goes in here?");
Try "CheckBox.icon".
Cheers,
Dan Andrews
- - - - - - - - - - - - - - - - - - - - - - - - -
Ansir Development Limited http://www.ansir.ca
- - - - - - - - - - - - - - - - - - - - - - - - -