JAL-360 JAL-3975 update parent for text colour dialog - doesn't seem to help but...
authorJim Procter <j.procter@dundee.ac.uk>
Wed, 30 Mar 2022 15:51:44 +0000 (16:51 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Wed, 30 Mar 2022 15:51:44 +0000 (16:51 +0100)
src/jalview/gui/TextColourChooser.java

index 17c1f29..f9ff337 100644 (file)
  */
 package jalview.gui;
 
-import jalview.datamodel.SequenceGroup;
-import jalview.gui.JalviewColourChooser.ColourChooserListener;
-import jalview.util.MessageManager;
-
 import java.awt.BorderLayout;
 import java.awt.Color;
 import java.awt.Dimension;
@@ -39,6 +35,10 @@ import javax.swing.JSlider;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
 
+import jalview.datamodel.SequenceGroup;
+import jalview.gui.JalviewColourChooser.ColourChooserListener;
+import jalview.util.MessageManager;
+
 public class TextColourChooser
 {
   AlignmentPanel ap;
@@ -159,9 +159,9 @@ public class TextColourChooser
         restoreInitialSettings();
       }
     };
-    JvOptionPane.newOptionDialog(alignPanel).setResponseHandler(1, action)
-            .showInternalDialog(bigpanel, title,
-                    JvOptionPane.YES_NO_CANCEL_OPTION,
+    JvOptionPane.newOptionDialog(alignPanel.alignFrame)
+            .setResponseHandler(1, action).showInternalDialog(bigpanel,
+                    title, JvOptionPane.YES_NO_CANCEL_OPTION,
                     JvOptionPane.PLAIN_MESSAGE, null, options,
                     MessageManager.getString("action.ok"));
   }