fixed Minumum Size of ChatWindow.

This commit is contained in:
schrom01 2022-04-12 13:16:58 +02:00
parent e0ca1c77bb
commit 84c852c9b5
1 changed files with 1 additions and 1 deletions

View File

@ -23,10 +23,10 @@ public class ClientUI extends Application {
// configure and show stage // configure and show stage
primaryStage.setScene(scene); primaryStage.setScene(scene);
primaryStage.setMinWidth(420);
primaryStage.setMinHeight(250); primaryStage.setMinHeight(250);
primaryStage.setTitle("Multichat Client"); primaryStage.setTitle("Multichat Client");
primaryStage.show(); primaryStage.show();
primaryStage.setMinWidth(primaryStage.getWidth()); //use automatically computed size as Minimum Size.
} catch(Exception e) { } catch(Exception e) {
System.err.println("Error starting up UI" + e.getMessage()); System.err.println("Error starting up UI" + e.getMessage());
} }