From 72a7ef85fa22bd0a9ad098aee8ac967d03e29e33 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Wed, 22 Jun 2011 01:13:03 +0200 Subject: Maybe fixed auto minimizing on windows git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@565 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/View.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java index 15142e3..d04a136 100644 --- a/src/jrummikub/view/impl/View.java +++ b/src/jrummikub/view/impl/View.java @@ -539,16 +539,14 @@ public class View extends JFrame implements IView { } public void showQuitWarningPanel(boolean show) { + if (show) { + setEnabled(true); + } quitWarningFrame.setLocationRelativeTo(this); quitWarningFrame.setVisible(show); - - setEnabled(!show); - /* - * mainLayer.setEnabled(!show); menuBar.setEnabled(!show); - * settingsPanel.setEnabled(!show); loginPanel.setEnabled(!show); - * scorePanel.setEnabled(!show); gameListPanel.setEnabled(!show); - * connectPanel.setEnabled(!show); - */ + if (!show) { + setEnabled(false); + } } @Override @@ -664,8 +662,8 @@ public class View extends JFrame implements IView { winPanel.setType(type); winPanel.setVisible(showWinPanel); - playerPanel.setVisible((!showStartTurnPanel) - && (!showWinPanel) && type != null); + playerPanel.setVisible((!showStartTurnPanel) && (!showWinPanel) + && type != null); if (type == BottomPanelType.START_GAME_PANEL) { table.setStoneSets(Collections -- cgit v1.2.3