Fixed "the frame is decorated" exception.

This commit is contained in:
Doublestrike
2011-11-30 01:59:11 +00:00
parent 3568ca8a57
commit 73253a6127

View File

@@ -226,10 +226,10 @@ public class WinLoseFrame extends JFrame {
bounds.y = (screen.height - bounds.height) / 2;
}
this.setUndecorated(true);
this.setBackground(AllZone.getSkin().getClrTheme());
this.setBounds(bounds);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setUndecorated(true);
this.setVisible(true);
}