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]
# 1
what you mean by "looks like it's enabled"?Do you still can select option?
Icycoola at 2007-7-9 23:00:48 > top of Java-index,Desktop,Core GUI APIs...
# 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") );
camickra at 2007-7-9 23:00:48 > top of Java-index,Desktop,Core GUI APIs...
# 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..
Jo83pha at 2007-7-9 23:00:48 > top of Java-index,Desktop,Core GUI APIs...
# 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.. =)

Jo83pha at 2007-7-9 23:00:48 > top of Java-index,Desktop,Core GUI APIs...