mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47:13 -06:00
ComboBox: fixed NPE in combobox with custom renderer after switching to FlatLaf (#16; regression in 0.14)
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
FlatLaf Change Log
|
||||
==================
|
||||
|
||||
## Unreleased
|
||||
|
||||
- ComboBox: Fixed NPE in combobox with custom renderer after switching to
|
||||
FlatLaf. (issue #16; regression in 0.14)
|
||||
|
||||
|
||||
## 0.14
|
||||
|
||||
- ComboBox: Use small border if used as table editor.
|
||||
|
||||
@@ -370,7 +370,6 @@ public class FlatComboBoxUI
|
||||
extends BasicComboPopup
|
||||
{
|
||||
private CellPaddingBorder paddingBorder;
|
||||
private final ListCellRenderer renderer = new PopupListCellRenderer();
|
||||
|
||||
FlatComboPopup( JComboBox combo ) {
|
||||
super( combo );
|
||||
@@ -405,7 +404,7 @@ public class FlatComboBoxUI
|
||||
protected void configureList() {
|
||||
super.configureList();
|
||||
|
||||
list.setCellRenderer( renderer );
|
||||
list.setCellRenderer( new PopupListCellRenderer() );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -416,7 +415,7 @@ public class FlatComboBoxUI
|
||||
super.propertyChange( e );
|
||||
|
||||
if( e.getPropertyName() == "renderer" )
|
||||
list.setCellRenderer( renderer );
|
||||
list.setCellRenderer( new PopupListCellRenderer() );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user