|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<?import javafx.scene.control.Button?> |
| 4 | +<?import javafx.scene.control.Menu?> |
| 5 | +<?import javafx.scene.control.MenuBar?> |
| 6 | +<?import javafx.scene.control.MenuItem?> |
| 7 | +<?import javafx.scene.control.SeparatorMenuItem?> |
| 8 | +<?import javafx.scene.control.TextArea?> |
| 9 | +<?import javafx.scene.control.TextField?> |
| 10 | +<?import javafx.scene.layout.BorderPane?> |
| 11 | +<?import javafx.scene.layout.HBox?> |
| 12 | +<?import javafx.scene.text.Font?> |
| 13 | + |
| 14 | +<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.FastChatController"> |
| 15 | + <top> |
| 16 | + <MenuBar BorderPane.alignment="CENTER"> |
| 17 | + <menus> |
| 18 | + <Menu mnemonicParsing="false" text="File"> |
| 19 | + <items> |
| 20 | + <MenuItem mnemonicParsing="false" onAction="#clearChatArea" text="Clear" /> |
| 21 | + <SeparatorMenuItem mnemonicParsing="false" /> |
| 22 | + <MenuItem mnemonicParsing="false" onAction="#exportToPDF" text="Export to PDF" /> |
| 23 | + <SeparatorMenuItem mnemonicParsing="false" /> |
| 24 | + <MenuItem fx:id="connectMenu" mnemonicParsing="false" onAction="#connectToServer" text="Connect" /> |
| 25 | + <MenuItem fx:id="disconnectMenu" disable="true" mnemonicParsing="false" onAction="#disconnectFromServer" text="Disconnect" /> |
| 26 | + <SeparatorMenuItem mnemonicParsing="false" /> |
| 27 | + <MenuItem mnemonicParsing="false" onAction="#exitApplication" text="Exit" /> |
| 28 | + </items> |
| 29 | + </Menu> |
| 30 | + <Menu mnemonicParsing="false" text="Help"> |
| 31 | + <items> |
| 32 | + <MenuItem mnemonicParsing="false" onAction="#openHelpBox" text="About" /> |
| 33 | + </items> |
| 34 | + </Menu> |
| 35 | + </menus> |
| 36 | + </MenuBar> |
| 37 | + </top> |
| 38 | + <center> |
| 39 | + <TextArea fx:id="chatTextArea" editable="false" focusTraversable="false" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" /> |
| 40 | + </center> |
| 41 | + <bottom> |
| 42 | + <HBox prefHeight="30.0" prefWidth="600.0" BorderPane.alignment="CENTER"> |
| 43 | + <children> |
| 44 | + <TextField fx:id="messageText" disable="true" onKeyPressed="#onEnter" prefHeight="30.0" prefWidth="549.0" promptText="Type a message..."> |
| 45 | + <font> |
| 46 | + <Font size="14.0" /> |
| 47 | + </font> |
| 48 | + </TextField> |
| 49 | + <Button fx:id="sendBtn" disable="true" mnemonicParsing="false" onAction="#sendMessage" prefHeight="30.0" prefWidth="75.0" text="Send"> |
| 50 | + <font> |
| 51 | + <Font size="14.0" /> |
| 52 | + </font> |
| 53 | + </Button> |
| 54 | + </children> |
| 55 | + </HBox> |
| 56 | + </bottom> |
| 57 | +</BorderPane> |
0 commit comments