|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|