diff --git a/forge-gui/src/main/java/forge/gui/framework/IVDoc.java b/forge-gui/src/main/java/forge/gui/framework/IVDoc.java index cb16411c728..002c1cda4a6 100644 --- a/forge-gui/src/main/java/forge/gui/framework/IVDoc.java +++ b/forge-gui/src/main/java/forge/gui/framework/IVDoc.java @@ -30,7 +30,7 @@ public interface IVDoc { /** Retrieves control object associated with this document. * @return {@link forge.gui.home.ICSubmenu} */ - TCDoc getLayoutControl(); + TCDoc getLayoutControl(); /** Sets the current parent cell of this view, * allowing access to its body and head sections. diff --git a/forge-gui/src/main/java/forge/gui/toolbox/SaveOpenDialog.java b/forge-gui/src/main/java/forge/gui/toolbox/SaveOpenDialog.java index e0624a87152..ddb5a7b8df7 100644 --- a/forge-gui/src/main/java/forge/gui/toolbox/SaveOpenDialog.java +++ b/forge-gui/src/main/java/forge/gui/toolbox/SaveOpenDialog.java @@ -21,6 +21,7 @@ package forge.gui.toolbox; import java.io.File; import javax.swing.JFileChooser; +import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.filechooser.FileFilter; import javax.swing.filechooser.FileNameExtensionFilter; @@ -79,7 +80,7 @@ public class SaveOpenDialog extends JPanel { fc.addChoosableFileFilter(filter); } - int RetValue = fc.showOpenDialog(getParent()); + int RetValue = fc.showOpenDialog(JOptionPane.getRootFrame()); if (RetValue == JFileChooser.APPROVE_OPTION) { final File RetFile = fc.getSelectedFile(); return RetFile; @@ -106,7 +107,7 @@ public class SaveOpenDialog extends JPanel { fc.addChoosableFileFilter(filter); } - int RetValue = fc.showSaveDialog(getParent()); + int RetValue = fc.showSaveDialog(JOptionPane.getRootFrame()); /* user picked save */ if (RetValue == JFileChooser.APPROVE_OPTION) {