Skip to content

Commit

Permalink
stage
Browse files Browse the repository at this point in the history
  • Loading branch information
code-irisnk committed Apr 15, 2024
1 parent c3ac598 commit 665ba82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/team/elrant/bubbles/gui/ChatViewApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 665ba82

Please sign in to comment.