Skip to content
Snippets Groups Projects
Commit 389a7013 authored by jokayli's avatar jokayli
Browse files

Improvements to layout

parent 539237b3
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import fi.jyu.mit.fxgui.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<TitledPane stylesheets="@padelrekisteri.css" text="jokayli@student.jyu.fi" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxPadelRekisteri.HallitController">
<content>
<BorderPane stylesheets="@padelrekisteri.css" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxPadelRekisteri.HallitController">
<center>
<SplitPane dividerPositions="0.29797979797979796" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0">
<items>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="400.0" prefWidth="130.0">
......@@ -55,52 +48,68 @@
<Separator layoutX="-12.0" layoutY="99.0" prefWidth="200.0" />
</children>
</AnchorPane>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
<children>
<GridPane layoutX="36.0" layoutY="82.0" prefHeight="400.0" prefWidth="418.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="276.0" minWidth="10.0" prefWidth="256.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="204.0" minWidth="10.0" prefWidth="162.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="195.0" minHeight="10.0" prefHeight="21.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="379.0" minHeight="10.0" prefHeight="379.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label alignment="CENTER" prefHeight="17.0" prefWidth="166.0" text="Toiminnot" GridPane.columnIndex="1" />
<Label alignment="CENTER" prefHeight="17.0" prefWidth="261.0" text="Kaikki hallit" />
<VBox alignment="TOP_CENTER" prefHeight="379.0" prefWidth="152.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
<children>
<Button alignment="CENTER" mnemonicParsing="false" onMouseClicked="#handleShowHalli" prefHeight="40.0" prefWidth="141.0" text="Näytä valittu halli">
<font>
<Font size="14.0" />
</font>
<VBox.margin>
<Insets top="6.0" />
</VBox.margin>
</Button>
<Button alignment="CENTER" layoutX="21.0" layoutY="16.0" mnemonicParsing="false" onMouseClicked="#handleUusiHalli" prefHeight="40.0" prefWidth="141.0" text="Uusi halli">
<font>
<Font size="14.0" />
</font>
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Button>
</children>
</VBox>
<VBox prefHeight="200.0" prefWidth="100.0" GridPane.rowIndex="1">
<SplitPane dividerPositions="0.5">
<items>
<BorderPane>
<center>
<ListChooser fx:id="chooserHallit" maxHeight="1.7976931348623157E308" onMouseClicked="#handleNaytaHalli" prefHeight="100.0" rivit="Ankka Aku&#10;Ankka Iines&#10;Ankka Roope&#10;Ponteva Veli&#10;Susi Sepe&#10;" BorderPane.alignment="CENTER" />
</center>
<top>
<HBox BorderPane.alignment="CENTER">
<children>
<Label alignment="CENTER" prefHeight="33.0" prefWidth="256.0" style="-fx-background-color: #EEEEEE;" text="Jaakon padelhalli" />
<Label alignment="CENTER" layoutX="10.0" layoutY="10.0" prefHeight="33.0" prefWidth="256.0" text="Padel Center Helsinki" />
<Label alignment="CENTER" layoutX="10.0" layoutY="10.0" prefHeight="33.0" prefWidth="256.0" style="-fx-background-color: #EEEEEE;" text="Jarkko niemisen tennis ja padel" />
<Label text="Järjestä">
<padding>
<Insets left="10.0" right="10.0" />
</padding>
<HBox.margin>
<Insets top="5.0" />
</HBox.margin>
</Label>
<ChoiceBox fx:id="choiceJarjesta" onInputMethodTextChanged="#handleJarjesta" prefWidth="120.0" />
</children>
</VBox>
</children>
</GridPane>
</children>
</AnchorPane>
</HBox>
</top>
</BorderPane>
<BorderPane prefHeight="200.0" prefWidth="200.0">
<top>
<Label alignment="CENTER" prefHeight="17.0" prefWidth="166.0" text="Toiminnot" BorderPane.alignment="CENTER" />
</top>
<center>
<TextArea fx:id="panelHalli" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" />
</center>
</BorderPane>
</items>
</SplitPane>
</items>
</SplitPane>
</content>
</TitledPane>
</center>
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="jokayli@student.jyu.fi" />
</menus>
</MenuBar>
</top>
<bottom>
<BorderPane prefHeight="60.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<right>
<HBox prefHeight="70.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Button alignment="CENTER" mnemonicParsing="false" onMouseClicked="#handleTallenna" prefHeight="30.0" prefWidth="80.0" text="Tallenna" />
<Button alignment="CENTER" mnemonicParsing="false" onMouseClicked="#handleUusiHalli" prefHeight="30.0" prefWidth="110.0" text="Uusi halli">
<HBox.margin>
<Insets left="10.0" right="5.0" />
</HBox.margin>
</Button>
</children>
</HBox>
</right>
<BorderPane.margin>
<Insets />
</BorderPane.margin>
<padding>
<Insets top="10.0" />
</padding>
</BorderPane>
</bottom>
</BorderPane>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment