JAL-1111 allow news reader window to be moved even when modal dialogs are shown
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 5 Sep 2012 10:44:26 +0000 (11:44 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 5 Sep 2012 10:44:26 +0000 (11:44 +0100)
src/jalview/gui/BlogReader.java

index 53ab9a3..7af589d 100644 (file)
@@ -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();
         }