From 665ba82813c0759e09f137a3a2abb1176244133d Mon Sep 17 00:00:00 2001 From: Iris De Santis Date: Mon, 15 Apr 2024 12:46:50 +0200 Subject: [PATCH] stage --- .../team/elrant/bubbles/gui/ChatViewApplication.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/team/elrant/bubbles/gui/ChatViewApplication.java b/src/main/java/team/elrant/bubbles/gui/ChatViewApplication.java index 06bb3a2..ef637c3 100644 --- a/src/main/java/team/elrant/bubbles/gui/ChatViewApplication.java +++ b/src/main/java/team/elrant/bubbles/gui/ChatViewApplication.java @@ -71,11 +71,11 @@ public void start(@NotNull Stage stage) throws Exception { AnchorPane root = fxmlLoader.load(); @NotNull Scene scene = new Scene(root, 800, 700); scene.getStylesheets().add(Objects.requireNonNull(getClass().getResource("styling/fluent-light.css")).toExternalForm()); - primaryStage.setTitle("Chat"); - primaryStage.setScene(scene); - primaryStage.centerOnScreen(); - primaryStage.setResizable(false); - primaryStage.show(); + stage.setTitle("Chat"); + stage.setScene(scene); + stage.centerOnScreen(); + stage.setResizable(false); + stage.show(); } catch (Exception e) { logger.error("Error starting ChatViewApplication: {}", e.getMessage()); throw e;