git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4eb078
)
JAL-4262 Fix the nonblockingdialog so that Jalview desktop isn't left set to alwaysOnTop
author
Ben Soares
<b.soares@dundee.ac.uk>
Wed, 18 Oct 2023 11:28:11 +0000
(12:28 +0100)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Wed, 18 Oct 2023 11:28:11 +0000
(12:28 +0100)
src/jalview/gui/JvOptionPane.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/JvOptionPane.java
b/src/jalview/gui/JvOptionPane.java
index
8edab03
..
7a5daf7
100644
(file)
--- a/
src/jalview/gui/JvOptionPane.java
+++ b/
src/jalview/gui/JvOptionPane.java
@@
-1334,6
+1334,7
@@
public class JvOptionPane extends JOptionPane
// A better hack which works is to create a new JFrame parent with
// setAlwaysOnTop(true)
+ boolean parentOnTop = dialogParent.isAlwaysOnTop();
dialogParent.setAlwaysOnTop(true);
parentComponent = dialogParent;
@@
-1341,6
+1342,8
@@
public class JvOptionPane extends JOptionPane
JOPTIONPANE_MESSAGETYPE, icon, options, initialValue, modal,
buttons);
+ dialogParent.setAlwaysOnTop(parentOnTop);
+
if (dispose)
{
dialogParent.setAlwaysOnTop(false);