mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
Merge branch 'master' of https://github.com/bancika/diy-layout-creator
This commit is contained in:
@@ -106,10 +106,12 @@ public class DynamicValueEditor extends JComboBox<Object> {
|
||||
|
||||
@Override
|
||||
public void itemStateChanged(ItemEvent e) {
|
||||
if (e.getStateChange() == ItemEvent.SELECTED) {
|
||||
if (e.getStateChange() == ItemEvent.SELECTED
|
||||
|| (e.getStateChange() == ItemEvent.DESELECTED
|
||||
&& getSelectedItem() == null)) {
|
||||
property.setChanged(true);
|
||||
setBackground(oldBg);
|
||||
DynamicValueEditor.this.property.setValue(e.getItem());
|
||||
DynamicValueEditor.this.property.setValue(getSelectedItem());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user