mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47:13 -06:00
ComboBox: fixed regression in FlatLaf 1.6.3 that makes selected item invisible in popup list if DefaultListCellRenderer is used as renderer (issue #426)
This commit is contained in:
@@ -498,11 +498,8 @@ public class FlatComboBoxUI
|
||||
// make renderer component temporary non-opaque to avoid that renderer paints
|
||||
// background outside of border if combobox uses larger arc for edges
|
||||
// (e.g. FlatClientProperties.COMPONENT_ROUND_RECT is true)
|
||||
boolean oldOpaque = true;
|
||||
if( c instanceof JComponent ) {
|
||||
oldOpaque = ((JComponent)c).isOpaque();
|
||||
if( c instanceof JComponent )
|
||||
((JComponent)c).setOpaque( false );
|
||||
}
|
||||
|
||||
boolean shouldValidate = (c instanceof JPanel);
|
||||
|
||||
@@ -511,7 +508,7 @@ public class FlatComboBoxUI
|
||||
paddingBorder.uninstall();
|
||||
|
||||
if( c instanceof JComponent )
|
||||
((JComponent)c).setOpaque( oldOpaque );
|
||||
((JComponent)c).setOpaque( true );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user