From: Jim Procter Date: Wed, 30 Mar 2022 15:51:44 +0000 (+0100) Subject: JAL-360 JAL-3975 update parent for text colour dialog - doesn't seem to help but... X-Git-Tag: Release_2_11_2_1~10^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7f3e371b7fbae94e9b731956cbdebc866742c692;p=jalview.git JAL-360 JAL-3975 update parent for text colour dialog - doesn't seem to help but we live in hope.. --- diff --git a/src/jalview/gui/TextColourChooser.java b/src/jalview/gui/TextColourChooser.java index 17c1f29..f9ff337 100644 --- a/src/jalview/gui/TextColourChooser.java +++ b/src/jalview/gui/TextColourChooser.java @@ -20,10 +20,6 @@ */ 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")); }