From 61a5d322ba22615a18198b5b0b663fca5b04bf5a Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Wed, 22 Jun 2011 01:46:58 +0200 Subject: stupid windows is stupid git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@566 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/View.java | 13 ++++++++----- 1 file 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); } } -- cgit v1.2.3