Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.CheckBox?>
  6. <?import javafx.scene.control.Label?>
  7. <?import javafx.scene.control.ListView?>
  8. <?import javafx.scene.control.TextField?>
  9. <?import javafx.scene.layout.BorderPane?>
  10. <?import javafx.scene.layout.HBox?>
  11. <?import javafx.scene.layout.Region?>
  12. <?import javafx.scene.layout.VBox?>
  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="sample.Controller">
  15. <top>
  16. <HBox prefHeight="112.0" prefWidth="580.0" spacing="20.0" BorderPane.alignment="CENTER">
  17. <children>
  18. <TextField fx:id="text" onAction="#onEnter" promptText="Nazwa" />
  19. <Button fx:id="add" mnemonicParsing="false" onAction="#onAdd" text="Dodaj" />
  20. <Button fx:id="delete" layoutX="159.0" layoutY="10.0" mnemonicParsing="false" onAction="#onDelete" text="Usun" />
  21. <Button fx:id="random" layoutX="247.0" layoutY="10.0" mnemonicParsing="false" onAction="#onRandom" text="Losuj">
  22. <HBox.margin>
  23. <Insets left="40.0" top="40.0" />
  24. </HBox.margin>
  25. </Button>
  26. </children>
  27. <BorderPane.margin>
  28. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  29. </BorderPane.margin>
  30. </HBox>
  31. </top>
  32. <left>
  33. <VBox fx:id="vbox" prefHeight="333.0" prefWidth="175.0" BorderPane.alignment="CENTER">
  34. <children>
  35. <CheckBox fx:id="cb" mnemonicParsing="false" prefHeight="17.0" prefWidth="78.0" text="Klemczak" />
  36. </children>
  37. <BorderPane.margin>
  38. <Insets left="10.0" />
  39. </BorderPane.margin>
  40. </VBox>
  41. </left>
  42. <right>
  43. <VBox prefHeight="274.0" prefWidth="18.0" BorderPane.alignment="CENTER">
  44. <children>
  45. <Region VBox.vgrow="ALWAYS" />
  46. </children>
  47. </VBox>
  48. </right>
  49. <bottom>
  50. <HBox prefHeight="12.0" prefWidth="600.0" BorderPane.alignment="CENTER">
  51. <children>
  52. <Region HBox.hgrow="ALWAYS" />
  53. </children>
  54. </HBox>
  55. </bottom>
  56. <center>
  57. <HBox prefHeight="100.0" prefWidth="200.0" BorderPane.alignment="CENTER">
  58. <children>
  59. <VBox prefHeight="200.0" prefWidth="100.0">
  60. <children>
  61. <Label text="Team 1">
  62. <padding>
  63. <Insets left="55.0" />
  64. </padding>
  65. </Label>
  66. <ListView fx:id="listview1" minWidth="150.0" prefHeight="200.0" prefWidth="200.0" />
  67. </children>
  68. <HBox.margin>
  69. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  70. </HBox.margin>
  71. <padding>
  72. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  73. </padding>
  74. </VBox>
  75. <VBox prefHeight="200.0" prefWidth="100.0">
  76. <children>
  77. <Label prefHeight="17.0" prefWidth="130.0" text="Team 2">
  78. <padding>
  79. <Insets left="55.0" />
  80. </padding>
  81. </Label>
  82. <ListView fx:id="listview2" minWidth="150.0" prefHeight="200.0" prefWidth="200.0" />
  83. </children>
  84. <padding>
  85. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  86. </padding>
  87. <HBox.margin>
  88. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  89. </HBox.margin>
  90. </VBox>
  91. </children>
  92. </HBox>
  93. </center>
  94. </BorderPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement