Browse Source

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

fbp-1.0
Levy.Xie-解安森 7 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 com.fr.stable.core.PropertyChangeAdapter;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentEvent;
import java.awt.BorderLayout; import java.awt.BorderLayout;
import java.awt.Dialog; import java.awt.Dialog;
@ -179,17 +178,12 @@ public abstract class BasicPane extends JPanel {
dg = new DIALOG((Dialog) window, isNeedButtonPane); dg = new DIALOG((Dialog) window, isNeedButtonPane);
} }
SwingUtilities.invokeLater(() -> { if (l != null) {
if (l != null) { dg.addDialogActionListener(l);
dg.addDialogActionListener(l); }
} dg.setBasicDialogSize(dimension);
dg.setBasicDialogSize(dimension); GUICoreUtils.centerWindow(dg);
GUICoreUtils.centerWindow(dg); dg.setResizable(false);
dg.setResizable(false);
dg.setVisible(true);
dg.toFront();
dg.requestFocus();
});
return dg; return dg;
} }

Loading…
Cancel
Save