Skip to content
Snippets Groups Projects
Commit 501744bf authored by jokayli's avatar jokayli
Browse files

Improved layout of omat tiedot

parent 62049c81
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ import javafx.scene.input.MouseEvent;
public class OmatTiedotController extends ViewChangeHandler {
@FXML
void handleSave(MouseEvent event) {
void handleTallenna(MouseEvent event) {
Dialogs.showMessageDialog("Tallennus ei toimi");
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Separator?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TextField?>
<?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 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.OmatTiedotController">
<content>
<BorderPane stylesheets="@padelrekisteri.css" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxPadelRekisteri.OmatTiedotController">
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="jokayli@student.jyu.fi" />
</menus>
</MenuBar>
</top>
<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">
......@@ -57,73 +54,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">
<BorderPane fx:id="panelKayttaja" prefHeight="200.0" prefWidth="200.0">
<top>
<Label alignment="CENTER" prefHeight="17.0" prefWidth="166.0" text="Toiminnot" BorderPane.alignment="CENTER" />
</top>
<center>
<GridPane prefHeight="379.0" prefWidth="248.0" GridPane.rowIndex="1">
<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 hgrow="SOMETIMES" maxWidth="191.0" minWidth="10.0" prefWidth="89.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="187.0" minWidth="10.0" prefWidth="167.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 maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.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="212.0" text="Tarkastele ja muokkaa omia tietoja" />
<VBox alignment="TOP_CENTER" prefHeight="379.0" prefWidth="152.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
<children>
<Button alignment="CENTER" mnemonicParsing="false" onMouseClicked="#handleSave" prefHeight="40.0" prefWidth="141.0" text="Tallenna muutokset">
<font>
<Font size="14.0" />
</font>
<VBox.margin>
<Insets top="6.0" />
</VBox.margin>
</Button>
</children>
</VBox>
<GridPane prefHeight="379.0" prefWidth="248.0" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="191.0" minWidth="10.0" prefWidth="89.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="187.0" minWidth="10.0" prefWidth="167.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="40.0" minHeight="25.0" prefHeight="35.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="89.0" text="Nimi" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="22.0" prefHeight="37.0" prefWidth="89.0" text="Email" textAlignment="RIGHT" GridPane.rowIndex="1" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="62.0" prefHeight="38.0" prefWidth="89.0" text="Puhelinnumero" GridPane.rowIndex="2" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="86.0" prefHeight="38.0" prefWidth="89.0" text="Osoite" GridPane.rowIndex="3" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="124.0" prefHeight="38.0" prefWidth="89.0" text="Postinumero" GridPane.rowIndex="4" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="162.0" prefHeight="38.0" prefWidth="89.0" text="Toimipaikka" GridPane.rowIndex="5" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="200.0" prefHeight="38.0" prefWidth="89.0" text="Sukupuoli" GridPane.rowIndex="6" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="238.0" prefHeight="38.0" prefWidth="89.0" text="Syntymävuosi" GridPane.rowIndex="7" />
<TextField prefHeight="25.0" prefWidth="159.0" text="Joonas" GridPane.columnIndex="1" />
<TextField layoutX="99.0" layoutY="17.0" text="jokayli@student.jyu.fi" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField layoutX="99.0" layoutY="55.0" text="045045045045" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField layoutX="99.0" layoutY="93.0" text="Yliopistonkatu 1" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<TextField layoutX="99.0" layoutY="131.0" text="20540" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<TextField layoutX="99.0" layoutY="169.0" text="Turku" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<ChoiceBox prefHeight="25.0" prefWidth="171.0" GridPane.columnIndex="1" GridPane.rowIndex="6" />
<TextField text="1995" GridPane.columnIndex="1" GridPane.rowIndex="7" />
</children>
</GridPane>
<Label alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="89.0" text="Nimi" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="22.0" prefHeight="37.0" prefWidth="89.0" text="Email" textAlignment="RIGHT" GridPane.rowIndex="1" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="62.0" prefHeight="38.0" prefWidth="89.0" text="Puhelinnumero" GridPane.rowIndex="2" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="86.0" prefHeight="38.0" prefWidth="89.0" text="Osoite" GridPane.rowIndex="3" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="124.0" prefHeight="38.0" prefWidth="89.0" text="Postinumero" GridPane.rowIndex="4" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="162.0" prefHeight="38.0" prefWidth="89.0" text="Toimipaikka" GridPane.rowIndex="5" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="200.0" prefHeight="38.0" prefWidth="89.0" text="Sukupuoli" GridPane.rowIndex="6" />
<Label alignment="CENTER_RIGHT" layoutX="10.0" layoutY="238.0" prefHeight="38.0" prefWidth="89.0" text="Syntymävuosi" GridPane.rowIndex="7" />
<TextField prefHeight="25.0" prefWidth="159.0" text="Joonas" GridPane.columnIndex="1" />
<TextField layoutX="99.0" layoutY="17.0" text="jokayli@student.jyu.fi" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField layoutX="99.0" layoutY="55.0" text="045045045045" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField layoutX="99.0" layoutY="93.0" text="Yliopistonkatu 1" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<TextField layoutX="99.0" layoutY="131.0" text="20540" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<TextField layoutX="99.0" layoutY="169.0" text="Turku" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<ChoiceBox prefHeight="25.0" prefWidth="171.0" GridPane.columnIndex="1" GridPane.rowIndex="6" />
<TextField text="1995" GridPane.columnIndex="1" GridPane.rowIndex="7" />
</children>
</GridPane>
</children>
</AnchorPane>
</center>
</BorderPane>
</items>
</SplitPane>
</content>
</TitledPane>
</center>
<bottom>
<BorderPane prefHeight="60.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<right>
<HBox prefHeight="70.0" prefWidth="100.0" BorderPane.alignment="CENTER">
<children>
<Button alignment="CENTER" mnemonicParsing="false" onMouseClicked="#handleTallenna" prefHeight="30.0" prefWidth="80.0" text="Tallenna" />
</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