mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fixed "the frame is decorated" exception.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user