Browse Source

REPORT-101289 【版本管理二期】数据迁移的提示弹窗位置没有居中

newui
Destiny.Lin 1 year ago
parent
commit
e1c02e0bc8
  1. 6
      designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsMovePanel.java

6
designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsMovePanel.java

@ -279,7 +279,7 @@ public class VcsMovePanel extends BasicPane {
BasicDialog dlg = choosePane.showMediumWindow(SwingUtilities.getWindowAncestor(VcsMovePanel.this), new DialogActionAdapter() {
@Override
public void doOk() {
createConfirmPane(VcsMovePanel.this);
createConfirmPane();
}
});
dlg.setVisible(true);
@ -287,7 +287,7 @@ public class VcsMovePanel extends BasicPane {
});
}
private void createConfirmPane(Component parent) {
private void createConfirmPane() {
VerticalFlowLayout layout = new VerticalFlowLayout(VerticalFlowLayout.TOP);
layout.setAlignLeft(true);
JPanel panel = new JPanel();
@ -302,7 +302,7 @@ public class VcsMovePanel extends BasicPane {
panel.add(titleLabel);
panel.add(firstLabel);
panel.add(secondLabel);
int value = FineJOptionPane.showConfirmDialog(parent, panel, Toolkit.i18nText("Fine-Design_Vcs_Move_Title"), JOptionPane.YES_NO_OPTION);
int value = FineJOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), panel, Toolkit.i18nText("Fine-Design_Vcs_Move_Title"), JOptionPane.YES_NO_OPTION);
processMove(value);
}

Loading…
Cancel
Save