Maybe fixed auto minimizing on windows

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@565 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-06-22 01:13:03 +02:00
parent 7fff627d3e
commit 72a7ef85fa

View file

@ -539,16 +539,14 @@ public class View extends JFrame implements IView {
} }
public void showQuitWarningPanel(boolean show) { public void showQuitWarningPanel(boolean show) {
if (show) {
setEnabled(true);
}
quitWarningFrame.setLocationRelativeTo(this); quitWarningFrame.setLocationRelativeTo(this);
quitWarningFrame.setVisible(show); quitWarningFrame.setVisible(show);
if (!show) {
setEnabled(!show); setEnabled(false);
/* }
* mainLayer.setEnabled(!show); menuBar.setEnabled(!show);
* settingsPanel.setEnabled(!show); loginPanel.setEnabled(!show);
* scorePanel.setEnabled(!show); gameListPanel.setEnabled(!show);
* connectPanel.setEnabled(!show);
*/
} }
@Override @Override
@ -664,8 +662,8 @@ public class View extends JFrame implements IView {
winPanel.setType(type); winPanel.setType(type);
winPanel.setVisible(showWinPanel); winPanel.setVisible(showWinPanel);
playerPanel.setVisible((!showStartTurnPanel) playerPanel.setVisible((!showStartTurnPanel) && (!showWinPanel)
&& (!showWinPanel) && type != null); && type != null);
if (type == BottomPanelType.START_GAME_PANEL) { if (type == BottomPanelType.START_GAME_PANEL) {
table.setStoneSets(Collections table.setStoneSets(Collections