Advertisement
marrruuuuuuuu

JavaFX menu fxml file

Jun 27th, 2022
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.65 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.geometry.*?>
  4. <?import javafx.scene.control.*?>
  5. <?import javafx.scene.layout.*?>
  6. <?import javafx.scene.text.*?>
  7.  
  8. <StackPane prefHeight="470" prefWidth="470" style="-fx-background-color: cab577;" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.menu.HelloController">
  9.     <VBox alignment="CENTER" maxHeight="400" maxWidth="400" spacing="20.0" style="-fx-background-color: white;">
  10.         <padding>
  11.             <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
  12.         </padding>
  13.  
  14.         <Label fx:id="welcomeText" text="NotRealBattleRoyale">
  15.             <font>
  16.                 <Font name="Press Start 2P Regular" size="18.0" />
  17.             </font>
  18.         </Label>
  19.         <HBox prefHeight="38.0" prefWidth="342.0">
  20.             <children>
  21.                 <Label text="Username">
  22.                     <font>
  23.                         <Font name="Press Start 2P Regular" size="14.0" />
  24.                     </font>
  25.                     <padding>
  26.                         <Insets left="10.0" right="50.0" top="10.0" />
  27.                     </padding>
  28.                 </Label>
  29.                 <TextField>
  30.                     <HBox.margin>
  31.                         <Insets top="5.0" />
  32.                     </HBox.margin>
  33.                 </TextField>
  34.             </children>
  35.         </HBox>
  36.         <HBox layoutX="30.0" layoutY="70.0" prefHeight="47.0" prefWidth="342.0">
  37.             <children>
  38.                 <Label text="Server IP">
  39.                     <font>
  40.                         <Font name="Press Start 2P Regular" size="14.0" />
  41.                     </font>
  42.                     <padding>
  43.                         <Insets left="10.0" right="35.0" top="5.0" />
  44.                     </padding>
  45.                 </Label>
  46.                 <TextField>
  47.                     <HBox.margin>
  48.                         <Insets />
  49.                     </HBox.margin>
  50.                 </TextField>
  51.             </children>
  52.         </HBox>
  53.         <Button mnemonicParsing="false" prefHeight="34.0" prefWidth="248.0" style="-fx-background-color: b1cbbb;" text="Play">
  54.             <font>
  55.                 <Font name="Press Start 2P Regular" size="19.0" />
  56.             </font>
  57.             <VBox.margin>
  58.                 <Insets bottom="30.0" />
  59.             </VBox.margin>
  60.         </Button>
  61.         <Button mnemonicParsing="false" prefHeight="34.0" prefWidth="245.0" style="-fx-background-color: eea29a;" text="Exit">
  62.             <font>
  63.                 <Font name="Press Start 2P Regular" size="19.0" />
  64.             </font>
  65.         </Button>
  66.     </VBox>
  67. </StackPane>
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement