Skip to content

Commit

Permalink
#136 - Proper default combobox rendering for null and empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarin committed Jun 26, 2014
1 parent e63e2f3 commit 12738f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public Component getListCellRendererComponent ( final JList list, final Object v
else
{
renderer.setIcon ( null );
renderer.setText ( value == null ? "" : value.toString () );
renderer.setText ( value == null || value.toString ().equals ( "" ) ? " " : value.toString () );
}

return renderer;
Expand Down

0 comments on commit 12738f5

Please sign in to comment.