fix bug on popupmenu when no item are selected
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / bridge / popupmenu / SwingScilabPopupMenu.java
index 4be77fc..776847a 100644 (file)
@@ -99,6 +99,9 @@ public class SwingScilabPopupMenu extends JComboBox implements SwingViewObject,
                     if (index != - 1 && isSelected == false && item.getForeground() != null) {
                         label.setForeground(item.getForeground());
                     }
+                } else {
+                    label.setText("");
+                    label.setIcon(null);
                 }
                 return label;
             }