Browse Source

REPORT-76564 设计器检查-国际化问题

release/11.0
obo 1 year ago
parent
commit
73ad42cbdb
  1. 3
      designer-base/src/main/java/com/fr/design/components/table/TablePanel.java
  2. 3
      designer-base/src/main/java/com/fr/env/detect/ui/EnvDetectorDialog.java

3
designer-base/src/main/java/com/fr/design/components/table/TablePanel.java

@ -160,6 +160,9 @@ public class TablePanel extends JPanel {
cellPanel.remove(0);
}
cellPanel.add(component);
if(component instanceof UILabel) {
cellPanel.setToolTipText(((UILabel)component).getText());
}
}
public void updateCell(int row, int column, String value) {

3
designer-base/src/main/java/com/fr/env/detect/ui/EnvDetectorDialog.java vendored

@ -163,6 +163,7 @@ public class EnvDetectorDialog extends JDialog {
}
};
detectButton.setForeground(Color.WHITE);
detectButton.setToolTipText(buttonStatus.getDesc());
detectButton.addActionListener(event -> {
if (buttonStatus.isNotExecuting()) {
startDetecting();
@ -284,6 +285,7 @@ public class EnvDetectorDialog extends JDialog {
UIUtil.invokeLaterIfNeeded(() -> {
// 刷新按钮
detectButton.setText(buttonStatus.getDesc());
detectButton.setToolTipText(detectButton.getText());
// 刷新面板
refreshBody();
});
@ -293,6 +295,7 @@ public class EnvDetectorDialog extends JDialog {
// 刷新按钮
detectButton.setText(buttonStatus.getDesc());
detectButton.setToolTipText(detectButton.getText());
if (buttonStatus == EnvDetectorButtonStatus.A_NEW) {
this.resultSummaryPane = new JPanel();
this.resultSummaryPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0));

Loading…
Cancel
Save