Merge pull request #27 from PM2-IT21bWIN-ruiz-mach-krea/ChatWindow_Layout
Chat window layout
This commit is contained in:
commit
a27b7f4446
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,18 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
<?import javafx.geometry.Insets?>
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.Button?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.control.Menu?>
|
||||||
|
<?import javafx.scene.control.MenuBar?>
|
||||||
|
<?import javafx.scene.control.MenuItem?>
|
||||||
|
<?import javafx.scene.control.TextArea?>
|
||||||
|
<?import javafx.scene.control.TextField?>
|
||||||
|
<?import javafx.scene.layout.BorderPane?>
|
||||||
|
<?import javafx.scene.layout.HBox?>
|
||||||
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
|
||||||
<BorderPane fx:id="rootPane" minWidth="-Infinity" prefHeight="500.0" prefWidth="420.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ch.zhaw.pm2.multichat.client.ChatWindowController">
|
<BorderPane fx:id="rootPane" minWidth="-Infinity" prefHeight="500.0" prefWidth="420.0" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ch.zhaw.pm2.multichat.client.ChatWindowController">
|
||||||
<top>
|
<top>
|
||||||
<VBox BorderPane.alignment="CENTER">
|
<VBox BorderPane.alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
|
@ -68,7 +76,7 @@
|
||||||
</HBox>
|
</HBox>
|
||||||
</bottom>
|
</bottom>
|
||||||
<center>
|
<center>
|
||||||
<TextArea fx:id="messageArea" editable="false">
|
<TextArea fx:id="messageArea" editable="false" wrapText="true">
|
||||||
<BorderPane.margin>
|
<BorderPane.margin>
|
||||||
<Insets left="5.0" right="5.0" />
|
<Insets left="5.0" right="5.0" />
|
||||||
</BorderPane.margin>
|
</BorderPane.margin>
|
||||||
|
|
Loading…
Reference in New Issue