diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java index 1a928126..3770d9b2 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatComboBoxUI.java @@ -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