summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-06-22 01:13:03 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-06-22 01:13:03 +0200
commit72a7ef85fa22bd0a9ad098aee8ac967d03e29e33 (patch)
treef8a13c64e2b7d493b15157931b0c00d711f7bbd7
parent7fff627d3e587bf06f9958e0f1fc2ded284a8302 (diff)
downloadJRummikub-72a7ef85fa22bd0a9ad098aee8ac967d03e29e33.tar
JRummikub-72a7ef85fa22bd0a9ad098aee8ac967d03e29e33.zip
Maybe fixed auto minimizing on windows
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@565 72836036-5685-4462-b002-a69064685172
-rw-r--r--src/jrummikub/view/impl/View.java18
1 files changed, 8 insertions, 10 deletions
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