1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-12-22 08:23:33 +01:00

fxml: whitespace fix

This commit is contained in:
Carlos Galindo 2019-09-11 21:02:54 +02:00
parent 9029ae6385
commit 6b8f5ef1ee
Signed by: kauron
GPG key ID: 83E68706DEE119A3
5 changed files with 351 additions and 338 deletions

View file

@ -1,37 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.*?>
<?import javafx.scene.control.Label?> <?import javafx.scene.layout.*?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<VBox spacing="5.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.EditController"> <VBox spacing="5.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.EditController">
<children> <children>
<HBox alignment="CENTER_LEFT" spacing="5.0"> <HBox alignment="CENTER_LEFT" spacing="5.0">
<children> <children>
<Label prefWidth="60.0" text="Question" /> <Label prefWidth="60.0" text="Question" />
<TextField fx:id="questionText" /> <TextField fx:id="questionText" />
</children> </children>
</HBox> </HBox>
<HBox alignment="CENTER_LEFT" layoutX="10.0" layoutY="10.0" spacing="5.0"> <HBox alignment="CENTER_LEFT" layoutX="10.0" layoutY="10.0" spacing="5.0">
<children> <children>
<Label prefWidth="60.0" text="Answer" /> <Label prefWidth="60.0" text="Answer" />
<TextField fx:id="answerText" /> <TextField fx:id="answerText" />
</children> </children>
</HBox> </HBox>
<HBox alignment="CENTER_RIGHT" spacing="5.0"> <HBox alignment="CENTER_RIGHT" spacing="5.0">
<children> <children>
<Button cancelButton="true" mnemonicParsing="false" onAction="#onCancelAction" text="Cancel" /> <Button cancelButton="true" mnemonicParsing="false" onAction="#onCancelAction" text="Cancel" />
<Button defaultButton="true" mnemonicParsing="false" onAction="#onSaveAction" text="Save" /> <Button defaultButton="true" mnemonicParsing="false" onAction="#onSaveAction" text="Save" />
</children> </children>
<VBox.margin> <VBox.margin>
<Insets top="5.0" /> <Insets top="5.0" />
</VBox.margin> </VBox.margin>
</HBox> </HBox>
</children> </children>
<padding> <padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding> </padding>
</VBox> </VBox>

View file

@ -6,137 +6,137 @@
<?import javafx.scene.input.KeyCodeCombination?> <?import javafx.scene.input.KeyCodeCombination?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<BorderPane fx:id="root" prefHeight="450.0" prefWidth="750.0" xmlns="http://javafx.com/javafx/8.0.162-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.Controller"> <BorderPane fx:id="root" prefHeight="450.0" prefWidth="750.0" xmlns="http://javafx.com/javafx/8.0.162-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.Controller">
<center> <center>
<TabPane fx:id="tabPane" focusTraversable="false" minHeight="400.0" minWidth="600.0" tabMinWidth="100.0" BorderPane.alignment="CENTER"> <TabPane fx:id="tabPane" focusTraversable="false" minHeight="400.0" minWidth="600.0" tabMinWidth="100.0" BorderPane.alignment="CENTER">
<tabs> <tabs>
<Tab closable="false" text="Welcome"> <Tab closable="false" text="Welcome">
<content> <content>
<HBox alignment="CENTER" onDragDropped="#onDragDropped" onDragOver="#onDragOver" spacing="25.0"> <HBox alignment="CENTER" onDragDropped="#onDragDropped" onDragOver="#onDragOver" spacing="25.0">
<children> <children>
<VBox alignment="CENTER" spacing="15.0"> <VBox alignment="CENTER" spacing="15.0">
<children> <children>
<Button alignment="TOP_LEFT" onAction="#onNewAction" prefHeight="40.0" prefWidth="150.0" text="_New table"> <Button alignment="TOP_LEFT" onAction="#onNewAction" prefHeight="40.0" prefWidth="150.0" text="_New table">
<graphic> <graphic>
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<image> <image>
<Image url="@../img/File.png" /> <Image url="@../img/File.png" />
</image> </image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Create new empty table" />
</tooltip>
</Button>
<Button alignment="TOP_LEFT" onAction="#onLoadAction" prefHeight="40.0" prefWidth="150.0" text="_Load file">
<graphic>
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Open Folder.png" />
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Open an existing table from a file" />
</tooltip>
</Button>
<Button alignment="TOP_LEFT" layoutX="260.0" layoutY="187.0" onAction="#onImportAction" prefHeight="40.0" prefWidth="150.0" text="_Import data">
<graphic>
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Download.png" />
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Import data from other table-based software" />
</tooltip>
</Button>
<Button alignment="TOP_LEFT" layoutX="260.0" layoutY="208.0" onAction="#onSettingsAction" prefHeight="40.0" prefWidth="150.0" text="_Settings">
<graphic>
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Settings.png" />
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Change the settings" />
</tooltip>
</Button>
</children>
<padding>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</padding>
</VBox>
<VBox alignment="CENTER" spacing="15.0">
<children>
<ImageView fitHeight="150.0" fitWidth="150.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/icon2.png" />
</image>
</ImageView>
<Button mnemonicParsing="false" onAction="#onAboutAction" prefHeight="40.0" prefWidth="150.0" text="About" />
</children>
</VBox>
</children>
</HBox>
</content>
</Tab>
</tabs>
</TabPane>
</center>
<top>
<MenuBar>
<menus>
<Menu text="_File">
<items>
<MenuItem onAction="#onNewAction" text="_New">
<accelerator>
<KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/File.png" />
</image>
</ImageView> </ImageView>
</graphic> </graphic>
</MenuItem> <tooltip>
<SeparatorMenuItem mnemonicParsing="false" /> <Tooltip text="Create new empty table" />
<MenuItem onAction="#onLoadAction" text="_Open"> </tooltip>
<accelerator> </Button>
<KeyCodeCombination alt="UP" code="O" control="DOWN" meta="UP" shift="UP" shortcut="UP" /> <Button alignment="TOP_LEFT" onAction="#onLoadAction" prefHeight="40.0" prefWidth="150.0" text="_Load file">
</accelerator> <graphic>
<graphic> <ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true"> <image>
<image> <Image url="@../img/Open Folder.png" />
<Image url="@../img/Open Folder.png" /> </image>
</image>
</ImageView> </ImageView>
</graphic> </graphic>
</MenuItem> <tooltip>
<MenuItem onAction="#onImportAction" text="_Import"> <Tooltip text="Open an existing table from a file" />
<graphic> </tooltip>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true"> </Button>
<image> <Button alignment="TOP_LEFT" layoutX="260.0" layoutY="187.0" onAction="#onImportAction" prefHeight="40.0" prefWidth="150.0" text="_Import data">
<Image url="@../img/Download.png" /> <graphic>
</image> <ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Download.png" />
</image>
</ImageView> </ImageView>
</graphic></MenuItem> </graphic>
<SeparatorMenuItem mnemonicParsing="false" /> <tooltip>
<MenuItem fx:id="menuCloseTab" onAction="#onCloseTab" text="_Close tab" disable="true"> <Tooltip text="Import data from other table-based software" />
<accelerator> </tooltip>
<KeyCodeCombination alt="UP" code="W" control="DOWN" meta="UP" shift="UP" shortcut="UP"/> </Button>
</accelerator> <Button alignment="TOP_LEFT" layoutX="260.0" layoutY="208.0" onAction="#onSettingsAction" prefHeight="40.0" prefWidth="150.0" text="_Settings">
</MenuItem> <graphic>
<MenuItem onAction="#onQuit" text="_Quit"> <ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
<accelerator> <image>
<KeyCodeCombination alt="UP" code="Q" control="DOWN" meta="UP" shift="UP" shortcut="UP"/> <Image url="@../img/Settings.png" />
</accelerator> </image>
</MenuItem> </ImageView>
</items> </graphic>
</Menu> <tooltip>
</menus> <Tooltip text="Change the settings" />
</MenuBar> </tooltip>
</top> </Button>
</children>
<padding>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</padding>
</VBox>
<VBox alignment="CENTER" spacing="15.0">
<children>
<ImageView fitHeight="150.0" fitWidth="150.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/icon2.png" />
</image>
</ImageView>
<Button mnemonicParsing="false" onAction="#onAboutAction" prefHeight="40.0" prefWidth="150.0" text="About" />
</children>
</VBox>
</children>
</HBox>
</content>
</Tab>
</tabs>
</TabPane>
</center>
<top>
<MenuBar>
<menus>
<Menu text="_File">
<items>
<MenuItem onAction="#onNewAction" text="_New">
<accelerator>
<KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/File.png" />
</image>
</ImageView>
</graphic>
</MenuItem>
<SeparatorMenuItem mnemonicParsing="false" />
<MenuItem onAction="#onLoadAction" text="_Open">
<accelerator>
<KeyCodeCombination alt="UP" code="O" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Open Folder.png" />
</image>
</ImageView>
</graphic>
</MenuItem>
<MenuItem onAction="#onImportAction" text="_Import">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Download.png" />
</image>
</ImageView>
</graphic></MenuItem>
<SeparatorMenuItem mnemonicParsing="false" />
<MenuItem fx:id="menuCloseTab" onAction="#onCloseTab" text="_Close tab" disable="true">
<accelerator>
<KeyCodeCombination alt="UP" code="W" control="DOWN" meta="UP" shift="UP" shortcut="UP"/>
</accelerator>
</MenuItem>
<MenuItem onAction="#onQuit" text="_Quit">
<accelerator>
<KeyCodeCombination alt="UP" code="Q" control="DOWN" meta="UP" shift="UP" shortcut="UP"/>
</accelerator>
</MenuItem>
</items>
</Menu>
</menus>
</MenuBar>
</top>
</BorderPane> </BorderPane>

View file

@ -3,13 +3,14 @@
<?import com.jfoenix.controls.JFXCheckBox?> <?import com.jfoenix.controls.JFXCheckBox?>
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<VBox alignment="CENTER_LEFT" spacing="15.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.SettingsController"> <VBox alignment="CENTER_LEFT" spacing="15.0" xmlns="http://javafx.com/javafx/8.0.76-ea"
<children> xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.SettingsController">
<JFXCheckBox fx:id="repeatMistakes" text="_Repeat mistakes" /> <children>
<JFXCheckBox fx:id="repeatImmediately" text="_Always repeat immediatly"/> <JFXCheckBox fx:id="repeatMistakes" text="_Repeat mistakes"/>
<JFXCheckBox fx:id="showFeedback" text="Show _feedback while testing" /> <JFXCheckBox fx:id="repeatImmediately" text="_Always repeat immediatly"/>
</children> <JFXCheckBox fx:id="showFeedback" text="Show _feedback while testing"/>
<padding> </children>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" /> <padding>
</padding> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0"/>
</padding>
</VBox> </VBox>

View file

@ -4,105 +4,114 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.image.*?> <?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<HBox xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.TableController"> <HBox xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1"
<children> fx:controller="es.kauron.jstudy.controller.TableController">
<TableView fx:id="table" minHeight="-Infinity" minWidth="-Infinity" prefHeight="380.0" prefWidth="400.0" HBox.hgrow="ALWAYS"> <children>
<columns> <TableView fx:id="table" minHeight="-Infinity" minWidth="-Infinity" prefHeight="380.0" prefWidth="400.0"
<TableColumn fx:id="questionCol" prefWidth="75.0" text="Question" /> HBox.hgrow="ALWAYS">
<TableColumn fx:id="answerCol" prefWidth="75.0" text="Answer" /> <columns>
</columns> <TableColumn fx:id="questionCol" prefWidth="75.0" text="Question"/>
<columnResizePolicy> <TableColumn fx:id="answerCol" prefWidth="75.0" text="Answer"/>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" /> </columns>
</columnResizePolicy> <columnResizePolicy>
</TableView> <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
<VBox spacing="5.0"> </columnResizePolicy>
<children> </TableView>
<Button fx:id="saveButton" alignment="CENTER" contentDisplay="CENTER" layoutX="10.0" layoutY="163.0" onAction="#onSaveAction" prefWidth="105.0"> <VBox spacing="5.0">
<graphic> <children>
<ImageView fitHeight="50.0" fitWidth="50.0" pickOnBounds="true" preserveRatio="true"> <Button fx:id="saveButton" alignment="CENTER" contentDisplay="CENTER" layoutX="10.0" layoutY="163.0"
<image> onAction="#onSaveAction" prefWidth="105.0">
<Image url="@../img/Save.png" /> <graphic>
</image> <ImageView fitHeight="50.0" fitWidth="50.0" pickOnBounds="true" preserveRatio="true">
</ImageView> <image>
</graphic> <Image url="@../img/Save.png"/>
<VBox.margin> </image>
<Insets /> </ImageView>
</VBox.margin> </graphic>
<tooltip> <VBox.margin>
<Tooltip text="Save table to a file for future use" /> <Insets/>
</tooltip> </VBox.margin>
<tooltip>
<Tooltip text="Save table to a file for future use"/>
</tooltip>
</Button>
<Button defaultButton="true" onAction="#onAddAction" prefWidth="105.0" text="_Add">
<tooltip>
<Tooltip text="Add a new entry to the table"/>
</tooltip>
</Button>
<Button fx:id="editButton" alignment="TOP_LEFT" onAction="#onEditAction" prefWidth="105.0" text="_Edit">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Edit.png"/>
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Edit the selected entry"/>
</tooltip>
</Button>
<Button fx:id="swapButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onSwapAction"
prefWidth="105.0" text="S_wap">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Replace.png"/>
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Make the answer the question and viceversa"/>
</tooltip>
</Button>
<Button fx:id="duplicateButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onDuplicateAction"
prefWidth="105.0" text="D_uplicate">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Copy.png"/>
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Make a copy (may appear at the end)"/>
</tooltip>
</Button>
<Button fx:id="deleteButton" alignment="TOP_LEFT" onAction="#onDeleteAction" prefWidth="105.0" text="_Delete">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Delete.png"/>
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Delete all selected entries FOREVER"/>
</tooltip>
</Button>
<VBox alignment="BOTTOM_CENTER" spacing="5.0" VBox.vgrow="ALWAYS">
<children>
<Button fx:id="testSelectionButton" onAction="#onTestSelectionAction" prefWidth="105.0"
text="Test _selected">
<tooltip>
<Tooltip text="Begin a test with the selected rows"/>
</tooltip>
</Button> </Button>
<Button defaultButton="true" onAction="#onAddAction" prefWidth="105.0" text="_Add"> <Button layoutX="10.0" layoutY="273.0" onAction="#onTestAction" prefWidth="105.0" text="_Test all">
<tooltip> <tooltip>
<Tooltip text="Add a new entry to the table" /> <Tooltip text="Begin a test for the whole table"/>
</tooltip></Button> </tooltip>
<Button fx:id="editButton" alignment="TOP_LEFT" onAction="#onEditAction" prefWidth="105.0" text="_Edit">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Edit.png" />
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Edit the selected entry" />
</tooltip>
</Button> </Button>
<Button fx:id="swapButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onSwapAction" prefWidth="105.0" text="S_wap"> </children>
<graphic> <VBox.margin>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true"> <Insets/>
<image> </VBox.margin>
<Image url="@../img/Replace.png" /> </VBox>
</image> </children>
</ImageView> <HBox.margin>
</graphic> <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
<tooltip> </HBox.margin>
<Tooltip text="Make the answer the question and viceversa" /> </VBox>
</tooltip> </children>
</Button>
<Button fx:id="duplicateButton" alignment="TOP_LEFT" layoutX="10.0" layoutY="76.0" onAction="#onDuplicateAction" prefWidth="105.0" text="D_uplicate">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Copy.png" />
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Make a copy (may appear at the end)" />
</tooltip>
</Button>
<Button fx:id="deleteButton" alignment="TOP_LEFT" onAction="#onDeleteAction" prefWidth="105.0" text="_Delete">
<graphic>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../img/Delete.png" />
</image>
</ImageView>
</graphic>
<tooltip>
<Tooltip text="Delete all selected entries FOREVER" />
</tooltip>
</Button>
<VBox alignment="BOTTOM_CENTER" spacing="5.0" VBox.vgrow="ALWAYS">
<children>
<Button fx:id="testSelectionButton" onAction="#onTestSelectionAction" prefWidth="105.0" text="Test _selected">
<tooltip>
<Tooltip text="Begin a test with the selected rows" />
</tooltip></Button>
<Button layoutX="10.0" layoutY="273.0" onAction="#onTestAction" prefWidth="105.0" text="_Test all">
<tooltip>
<Tooltip text="Begin a test for the whole table" />
</tooltip></Button>
</children>
<VBox.margin>
<Insets />
</VBox.margin>
</VBox>
</children>
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</VBox>
</children>
</HBox> </HBox>

View file

@ -4,72 +4,79 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<BorderPane xmlns="http://javafx.com/javafx/8.0.202-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.jstudy.controller.TestController" stylesheets="@../css/test.css"> <BorderPane xmlns="http://javafx.com/javafx/8.0.202-ea" xmlns:fx="http://javafx.com/fxml/1"
<center> fx:controller="es.kauron.jstudy.controller.TestController" stylesheets="@../css/test.css">
<VBox minHeight="280.0" minWidth="360.0" spacing="10.0"> <center>
<children> <VBox minHeight="280.0" minWidth="360.0" spacing="10.0">
<Label fx:id="question" text="Question" textOverrun="CLIP" wrapText="true" VBox.vgrow="ALWAYS"> <children>
<font> <Label fx:id="question" text="Question" textOverrun="CLIP" wrapText="true" VBox.vgrow="ALWAYS">
<Font size="30.0" /> <font>
</font> <Font size="30.0"/>
</Label> </font>
<TextField fx:id="answer"> </Label>
<VBox.margin> <TextField fx:id="answer">
<Insets top="5.0" /> <VBox.margin>
</VBox.margin> <Insets top="5.0"/>
</TextField> </VBox.margin>
<Separator /> </TextField>
<HBox fx:id="feedback" alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS"> <Separator/>
<children> <HBox fx:id="feedback" alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
<GridPane hgap="10.0" maxWidth="1.7976931348623157E308" HBox.hgrow="ALWAYS"> <children>
<columnConstraints> <GridPane hgap="10.0" maxWidth="1.7976931348623157E308" HBox.hgrow="ALWAYS">
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" /> <columnConstraints>
<ColumnConstraints fillWidth="false" hgrow="ALWAYS" maxWidth="1.7976931348623157E308" /> <ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER"/>
</columnConstraints> <ColumnConstraints fillWidth="false" hgrow="ALWAYS" maxWidth="1.7976931348623157E308"/>
<rowConstraints> </columnConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
</rowConstraints> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/>
<children> </rowConstraints>
<Label text="Previous question" wrapText="true" /> <children>
<Label fx:id="prevQuestion" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true" GridPane.columnIndex="1" /> <Label text="Previous question" wrapText="true"/>
<Label text="Previous answer" wrapText="true" GridPane.rowIndex="1" /> <Label fx:id="prevQuestion" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true"
<Label fx:id="prevAnswer" maxWidth="1.7976931348623157E308" styleClass="answer, feedbackText" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1" /> GridPane.columnIndex="1"/>
<Label fx:id="correctLabel" text="Correct answer" wrapText="true" GridPane.rowIndex="2" /> <Label text="Previous answer" wrapText="true" GridPane.rowIndex="1"/>
<Label fx:id="correctAnswer" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="2" /> <Label fx:id="prevAnswer" maxWidth="1.7976931348623157E308" styleClass="answer, feedbackText"
</children> wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
</GridPane> <Label fx:id="correctLabel" text="Correct answer" wrapText="true" GridPane.rowIndex="2"/>
</children> <Label fx:id="correctAnswer" maxWidth="1.7976931348623157E308" styleClass="feedbackText" wrapText="true"
</HBox> GridPane.columnIndex="1" GridPane.rowIndex="2"/>
</children> </children>
<BorderPane.margin> </GridPane>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> </children>
</BorderPane.margin> </HBox>
</VBox> </children>
</center> <BorderPane.margin>
<bottom> <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
<VBox alignment="CENTER" BorderPane.alignment="CENTER"> </BorderPane.margin>
<children> </VBox>
<Separator prefWidth="200.0" /> </center>
<Label fx:id="progressLabel" alignment="CENTER" contentDisplay="TOP" maxWidth="1.7976931348623157E308" text="1/40" /> <bottom>
<ProgressBar fx:id="progress" maxWidth="1.7976931348623157E308" progress="0.0" /> <VBox alignment="CENTER" BorderPane.alignment="CENTER">
</children> <children>
<BorderPane.margin> <Separator prefWidth="200.0"/>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> <Label fx:id="progressLabel" alignment="CENTER" contentDisplay="TOP" maxWidth="1.7976931348623157E308"
</BorderPane.margin> text="1/40"/>
</VBox> <ProgressBar fx:id="progress" maxWidth="1.7976931348623157E308" progress="0.0"/>
</bottom> </children>
<right> <BorderPane.margin>
<VBox alignment="TOP_RIGHT" spacing="10.0" BorderPane.alignment="CENTER"> <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
<children> </BorderPane.margin>
<Button defaultButton="true" focusTraversable="false" onAction="#onNextAction" prefWidth="110.0" text="_Next" /> </VBox>
<Button fx:id="skipButton" cancelButton="true" focusTraversable="false" onAction="#onSkipAction" prefWidth="110.0" text="_Skip question" /> </bottom>
<Button cancelButton="true" focusTraversable="false" layoutX="10.0" layoutY="48.0" onAction="#onEndAction" prefWidth="110.0" text="_End test" /> <right>
</children> <VBox alignment="TOP_RIGHT" spacing="10.0" BorderPane.alignment="CENTER">
<BorderPane.margin> <children>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> <Button defaultButton="true" focusTraversable="false" onAction="#onNextAction" prefWidth="110.0" text="_Next"/>
</BorderPane.margin> <Button fx:id="skipButton" cancelButton="true" focusTraversable="false" onAction="#onSkipAction"
</VBox> prefWidth="110.0" text="_Skip question"/>
</right> <Button cancelButton="true" focusTraversable="false" layoutX="10.0" layoutY="48.0" onAction="#onEndAction"
prefWidth="110.0" text="_End test"/>
</children>
<BorderPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</BorderPane.margin>
</VBox>
</right>
</BorderPane> </BorderPane>