Browse Source

Pull request #6992: REPORT-62743 服务器启动模态框位置异常

Merge in DESIGN/design from ~TOMMY/design:release/11.0 to release/11.0

* commit 'fa6eb6a145eb4f20442fefd4b25311fe4ebd85a8':
  REPORT-62743 服务器启动模态框位置异常
bugfix/11.0
Tommy 3 years ago
parent
commit
2313fa818d
  1. 8
      designer-base/src/main/java/com/fr/design/gui/iprogressbar/ProgressDialog.java

8
designer-base/src/main/java/com/fr/design/gui/iprogressbar/ProgressDialog.java

@ -31,22 +31,22 @@ public class ProgressDialog extends UIDialog {
super(parent);
setUndecorated(true);
setSize(parent.getSize());
setLocationRelativeTo(null);
setLocation(parent.getLocation());
OSSupportCenter.buildAction(new OSBasedAction() {
@Override
public void execute(Object... objects) {
setOpacity(0.5f);
}
}, SupportOSImpl.OPACITY);
initComponent();
initComponent(parent);
}
private void initComponent() {
private void initComponent(Frame parent) {
centerDialog = new JDialog(this);
centerDialog.setSize(new Dimension(482, 124));
centerDialog.setUndecorated(true);
GUICoreUtils.centerWindow(centerDialog);
centerDialog.setLocationRelativeTo(parent);
JPanel panel = new JPanel();
panel.setBorder(new UIProgressBorder(3, UIConstants.DEFAULT_BG_RULER, 14, 46, 47, 37, 47));
panel.setLayout(new BorderLayout(4, 15));

Loading…
Cancel
Save