diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java index 739cbdeee9..283aa0772a 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java @@ -1038,7 +1038,7 @@ public class TableDataTreePane extends BasicTableDataTreePane { // 可以半选的CheckBoxList CheckBoxListWithPartialSelect tableDataCheckBoxPane = new CheckBoxListWithPartialSelect(selectedNameObjects); UIScrollPane scrollPane = new UIScrollPane(tableDataCheckBoxPane); - UILabel tips = new UILabel("Fine-Design_Basic_Select_Source_To_Remove"); + UILabel tips = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Select_Source_To_Remove")); BasicPane basicPane = new BasicPane() { @Override protected String title4PopupWindow() { diff --git a/designer-base/src/main/java/com/fr/design/gui/ilist/CheckBoxListWithPartialSelect.java b/designer-base/src/main/java/com/fr/design/gui/ilist/CheckBoxListWithPartialSelect.java index 3304073df4..88d98991d6 100644 --- a/designer-base/src/main/java/com/fr/design/gui/ilist/CheckBoxListWithPartialSelect.java +++ b/designer-base/src/main/java/com/fr/design/gui/ilist/CheckBoxListWithPartialSelect.java @@ -51,7 +51,15 @@ public class CheckBoxListWithPartialSelect extends JPanel { dataList.setCellRenderer(getListCellRenderer()); // 全选框 - chooseAllCheckBox = new TristateCheckBox(Toolkit.i18nText("Fine-Design_Basic_Remove_All_Selected")); + chooseAllCheckBox = new TristateCheckBox(Toolkit.i18nText("Fine-Design_Basic_Remove_All_Selected")) { + @Override + protected State getNextState(State current) { + if (current == TristateCheckBox.SELECTED || current == TristateCheckBox.DO_NOT_CARE) { + return TristateCheckBox.NOT_SELECTED; + } + return TristateCheckBox.SELECTED; + } + }; chooseAllCheckBox.setState(TristateCheckBox.SELECTED); chooseAllCheckBox.setFocusable(false); chooseAllCheckBox.addStateChangeListener(getChooseAllCheckBoxStateChangeListener());