JAL-1111 dialog flickers whilst example file starts if the desktop is not given as...
[jalview.git] / 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,