formatting
[jalview.git] / src / jalview / gui / PromptUserConfig.java
index f05459b..90302f3 100644 (file)
@@ -201,13 +201,14 @@ 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,
               JOptionPane.QUESTION_MESSAGE);
-      // now, ask the desktop to relayer any external windows that might have been obsured
-      if (Desktop.instance!=null)
+      // now, ask the desktop to relayer any external windows that might have
+      // been obsured
+      if (Desktop.instance != null)
       {
         Desktop.instance.relayerWindows();
       }