Making a disabled JComboBox look like it's enabled
Anything short of writing my own UI for it?Thanks,
[64 byte] By [
Jo83pha] at [2007-11-26 20:01:56]

# 2
If you are talking about the text color, then you can change it for all combo boxes by using:UIManager.put("ComboBox.disabledForeground", UIManager.get("ComboBox.foreground") );
# 3
I'm talking about the text color, as well as the arrow button. Basically I just want it to look like it's an actual combo box, but disable all the mouse events that go to it. i.e. the button won't change color when the mouse rolls over it, the popup won't open, etc..TIA..
# 4
Turns out the solution is rather simple.
@Override
public void paint (Graphics g)
{
setEnabled(true);
super.paint(g);
setEnabled(false);
}
Thanks for all the help.. =)