From e1c02e0bc8915266b74fefe6129dbd96070315db Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Mon, 24 Jul 2023 15:18:46 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-101289=20=E3=80=90=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BA=8C=E6=9C=9F=E3=80=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E7=9A=84=E6=8F=90=E7=A4=BA=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E6=B2=A1=E6=9C=89=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/mainframe/vcs/ui/VcsMovePanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsMovePanel.java b/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsMovePanel.java index 64b93fe99f..c724c16b88 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/vcs/ui/VcsMovePanel.java +++ b/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); }