HanoiTornyai/src/hanoi/Foablak.fxml
pp 27f6ff633c A Foablak grafikus felületének létrehozása.
A FoAblakController kódjának beillesztése.
2021-10-11 13:59:04 +02:00

52 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.Spinner?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<BorderPane prefHeight="400.0" prefWidth="400.0" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="hanoi.FoablakController">
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<center>
<Pane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Label layoutX="55.0" layoutY="77.0" text="Játékos neve:" />
<TextField fx:id="nevMezo" layoutX="135.0" layoutY="73.0" prefHeight="25.0" prefWidth="205.0" />
<Spinner fx:id="kspin" layoutX="135.0" layoutY="145.0" prefHeight="25.0" prefWidth="89.0" />
<Label layoutX="34.0" layoutY="149.0" text="Korongok száma:" />
<Button fx:id="playGomb" layoutX="61.0" layoutY="224.0" mnemonicParsing="false" onAction="#playGombAction" prefHeight="40.0" prefWidth="279.0" style="-fx-background-color: lightblue;" text="Játék indítása">
<font>
<Font name="Arial Bold" size="18.0" />
</font>
</Button>
</children>
</Pane>
</center>
</BorderPane>