Skip to content

Commit 78b38ce

Browse files
committed
Updated WindowManager.java
Disabled window resizing
1 parent 07de979 commit 78b38ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/dragunwf/quickmath/scripts/WindowManager.java

+3
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,17 @@ private static void openWindow(String name) throws Exception {
4040
case "mainMenu" -> {
4141
mainMenuUI = new MainMenuUI();
4242
mainMenuUI.setVisible(true);
43+
mainMenuUI.setResizable(false);
4344
}
4445
case "game" -> {
4546
gameUI = new GameUI();
4647
gameUI.setVisible(true);
48+
gameUI.setResizable(false);
4749
}
4850
case "retryMenu" -> {
4951
retryMenuUI = new RetryMenuUI();
5052
retryMenuUI.setVisible(true);
53+
retryMenuUI.setResizable(false);
5154
}
5255
default -> throw new Exception("Window name passed is not recognized!");
5356
}

0 commit comments

Comments
 (0)