mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
ComboBox: fixed background if explicit color is set (for not editable combobox)
This commit is contained in:
@@ -234,6 +234,12 @@ public class FlatComboBoxUI
|
||||
super.paintCurrentValue( g, bounds, false );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paintCurrentValueBackground( Graphics g, Rectangle bounds, boolean hasFocus ) {
|
||||
g.setColor( comboBox.isEnabled() ? comboBox.getBackground() : disabledBackground );
|
||||
g.fillRect( bounds.x, bounds.y, bounds.width, bounds.height );
|
||||
}
|
||||
|
||||
//---- class FlatArrowButton ----------------------------------------------
|
||||
|
||||
private class FlatArrowButton
|
||||
|
||||
Reference in New Issue
Block a user