JAL-1111 dialog flickers whilst example file starts if the desktop is not given as...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 1 Oct 2012 11:14:18 +0000 (12:14 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 1 Oct 2012 11:14:18 +0000 (12:14 +0100)
src/jalview/gui/PromptUserConfig.java

index f05459b..d50d2f2 100644 (file)
@@ -201,7 +201,7 @@ public class PromptUserConfig implements Runnable
     try
     {
       int reply = JOptionPane.showConfirmDialog(
-              null, // component,
+              Desktop.desktop, // component,
               dialogText, dialogTitle,
               (allowCancel) ? JOptionPane.YES_NO_CANCEL_OPTION
                       : JOptionPane.YES_NO_OPTION,