Skip to content

Commit 12738f5

Browse files
committed
#136 - Proper default combobox rendering for null and empty values
1 parent e63e2f3 commit 12738f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ui/src/com/alee/laf/combobox/WebComboBoxCellRenderer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Component getListCellRendererComponent ( final JList list, final Object v
126126
else
127127
{
128128
renderer.setIcon ( null );
129-
renderer.setText ( value == null ? "" : value.toString () );
129+
renderer.setText ( value == null || value.toString ().equals ( "" ) ? " " : value.toString () );
130130
}
131131

132132
return renderer;

0 commit comments

Comments
 (0)