mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -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 );
|
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 ----------------------------------------------
|
//---- class FlatArrowButton ----------------------------------------------
|
||||||
|
|
||||||
private class FlatArrowButton
|
private class FlatArrowButton
|
||||||
|
|||||||
Reference in New Issue
Block a user