Browse Source

REPORT-131085 远程设计保存弹窗问题

fbp-1.0
Levy.Xie-解安森 3 months ago
parent
commit
ae63edd590
  1. 18
      designer-base/src/main/java/com/fr/design/dialog/BasicPane.java

18
designer-base/src/main/java/com/fr/design/dialog/BasicPane.java

@ -14,7 +14,6 @@ import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.stable.core.PropertyChangeAdapter;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.event.DocumentEvent;
import java.awt.BorderLayout;
import java.awt.Dialog;
@ -179,17 +178,12 @@ public abstract class BasicPane extends JPanel {
dg = new DIALOG((Dialog) window, isNeedButtonPane);
}
SwingUtilities.invokeLater(() -> {
if (l != null) {
dg.addDialogActionListener(l);
}
dg.setBasicDialogSize(dimension);
GUICoreUtils.centerWindow(dg);
dg.setResizable(false);
dg.setVisible(true);
dg.toFront();
dg.requestFocus();
});
if (l != null) {
dg.addDialogActionListener(l);
}
dg.setBasicDialogSize(dimension);
GUICoreUtils.centerWindow(dg);
dg.setResizable(false);
return dg;
}

Loading…
Cancel
Save