|
|
|
@ -55,12 +55,14 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setSelectedItem(Object anObject) { |
|
|
|
|
initialSelected = anObject; |
|
|
|
|
if (loaded) { |
|
|
|
|
super.setSelectedItem(anObject); |
|
|
|
|
} else { |
|
|
|
|
this.setModel(new DefaultComboBoxModel<>(new Object[]{anObject})); |
|
|
|
|
if (initialSelected == null) { |
|
|
|
|
this.setModel(new DefaultComboBoxModel<>(new Object[]{anObject})); |
|
|
|
|
} |
|
|
|
|
super.setSelectedItem(anObject); |
|
|
|
|
initialSelected = anObject; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|