diff --git a/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java b/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java index 59ea03ae2f..da1862f3d0 100644 --- a/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java +++ b/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java @@ -62,12 +62,6 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { UILabel buildWayLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Build_Way") + " :"); buildWayPanel.add(buildWayLabel); buildBox = new UIComboBox(buildWay); - buildBox.addItemListener(e -> { - cardChanged(buildBox.getSelectedIndex()); - if (e.getStateChange() == ItemEvent.SELECTED) { - doBuildBoxSelect(buildBox.getSelectedIndex()); - } - }); buildWayPanel.add(buildBox); controlPane = new JTreeControlPane(new NameableCreator[]{treeNode}, @@ -78,7 +72,12 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { cardChanged(0); } - private void doBuildBoxSelect(Integer selectedIndex) { + @Override + public void checkValid() throws Exception { + doBuildBoxSelect(buildBox.getSelectedIndex()); + } + + private void doBuildBoxSelect(Integer selectedIndex) { } private void cardChanged(int index) {