summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-06-22 01:46:58 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-06-22 01:46:58 +0200
commit61a5d322ba22615a18198b5b0b663fca5b04bf5a (patch)
treed404af639f852a4b66fe33979c50131d47834795 /src/jrummikub/view
parent72a7ef85fa22bd0a9ad098aee8ac967d03e29e33 (diff)
downloadJRummikub-61a5d322ba22615a18198b5b0b663fca5b04bf5a.tar
JRummikub-61a5d322ba22615a18198b5b0b663fca5b04bf5a.zip
stupid windows is stupid
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@566 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r--src/jrummikub/view/impl/View.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java
index d04a136..fe2c1eb 100644
--- a/src/jrummikub/view/impl/View.java
+++ b/src/jrummikub/view/impl/View.java
@@ -6,6 +6,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
+import java.awt.event.ComponentListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
@@ -539,13 +540,15 @@ public class View extends JFrame implements IView {
}
public void showQuitWarningPanel(boolean show) {
- if (show) {
- setEnabled(true);
- }
quitWarningFrame.setLocationRelativeTo(this);
quitWarningFrame.setVisible(show);
- if (!show) {
- setEnabled(false);
+
+ if (System.getProperty("os.name").startsWith("Windows")) {
+ // disabling is broken under windows
+ layeredPane.setVisible(!show);
+ menuBar.setVisible(!show);
+ } else {
+ setEnabled(!show);
}
}