From: jprocter Date: Wed, 5 Sep 2012 10:44:26 +0000 (+0100) Subject: JAL-1111 allow news reader window to be moved even when modal dialogs are shown X-Git-Tag: Jalview_2_9~335 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=27fe847eb92910e04a874d6814205645b2fbf19a;p=jalview.git JAL-1111 allow news reader window to be moved even when modal dialogs are shown --- 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(); }