From 7f3e371b7fbae94e9b731956cbdebc866742c692 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 30 Mar 2022 16:51:44 +0100 Subject: [PATCH] JAL-360 JAL-3975 update parent for text colour dialog - doesn't seem to help but we live in hope.. --- src/jalview/gui/TextColourChooser.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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")); } -- 1.7.10.2