805 |
isPressed, hasFocus); |
isPressed, hasFocus); |
806 |
if (! comboBox.isEnabled()) |
if (! comboBox.isEnabled()) |
807 |
{ |
{ |
808 |
comp.setBackground(UIManager.getLookAndFeelDefaults().getColor( |
comp.setBackground(UIManager.getColor( |
809 |
"ComboBox.disabledBackground")); |
"ComboBox.disabledBackground")); |
810 |
comp.setForeground(UIManager.getLookAndFeelDefaults().getColor( |
comp.setForeground(UIManager.getColor( |
811 |
"ComboBox.disabledForeground")); |
"ComboBox.disabledForeground")); |
812 |
comp.setEnabled(false); |
comp.setEnabled(false); |
813 |
} |
} |
814 |
comp.setBounds(0, 0, bounds.width, bounds.height); |
comp.setBounds(0, 0, bounds.width, bounds.height); |