From 27fe847eb92910e04a874d6814205645b2fbf19a Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 5 Sep 2012 11:44:26 +0100 Subject: [PATCH] JAL-1111 allow news reader window to be moved even when modal dialogs are shown --- src/jalview/gui/BlogReader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jalview/gui/BlogReader.java b/src/jalview/gui/BlogReader.java index 53ab9a3..7af589d 100644 --- a/src/jalview/gui/BlogReader.java +++ b/src/jalview/gui/BlogReader.java @@ -23,6 +23,7 @@ import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.Rectangle; +import java.awt.Dialog.ModalExclusionType; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; @@ -326,6 +327,7 @@ public class BlogReader extends JPanel bounds = new Rectangle(5, 5, 550, 350); jd.initDialogFrame(me, false, false, "News from www.jalview.org", bounds.width, bounds.height); + jd.frame.setModalExclusionType(ModalExclusionType.NO_EXCLUDE); Cache.log.info("Displaying news."); jd.waitForInput(); } -- 1.7.10.2