Browse Source

REPORT-59545 设计器很多报错提示弹窗的交互有问题

research/11.0
方磊 3 years ago
parent
commit
ced3811436
  1. 6
      designer-base/src/main/java/com/fr/design/dialog/UIDialog.java
  2. 2
      designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

6
designer-base/src/main/java/com/fr/design/dialog/UIDialog.java

@ -175,7 +175,11 @@ public abstract class UIDialog extends JDialog {
try {
checkValid();
} catch (Exception exp) {
FineJOptionPane.showMessageDialog(this, exp.getMessage());
FineJOptionPane.showMessageDialog(
this,
exp.getMessage(),
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Tool_Tips"),
JOptionPane.WARNING_MESSAGE);
return;
}

2
designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

@ -655,7 +655,7 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
FormulaPane.this,
formulaValidMessage + ".",
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Tool_Tips"),
JOptionPane.INFORMATION_MESSAGE);
JOptionPane.WARNING_MESSAGE);
}
};

Loading…
Cancel
Save