updated
This commit is contained in:
parent
14962172f9
commit
0e82bc231a
@ -6,42 +6,40 @@
|
||||
xmlns:fx="http://javafx.com/fxml"
|
||||
prefWidth="600.0" prefHeight="400.0"
|
||||
fx:controller="at.ionas999.questioncatalog.controller.TestController">
|
||||
<children>
|
||||
<VBox spacing="20" alignment="CENTER" AnchorPane.topAnchor="10.0" AnchorPane.leftAnchor="10.0"
|
||||
AnchorPane.rightAnchor="10.0">
|
||||
<!-- Start Test Button -->
|
||||
<Button text="Start Test" fx:id="startBtn" onAction="#onStartTestBtnClick"/>
|
||||
<!-- Slider and Input Box -->
|
||||
<HBox spacing="10" alignment="CENTER">
|
||||
<Label text="Number of Questions:"/>
|
||||
<TextField fx:id="questionCountField" promptText="Enter amount"/>
|
||||
<Slider fx:id="questionSlider" min="1" max="10" showTickLabels="true" showTickMarks="true"/>
|
||||
<ComboBox fx:id="catalogComboBox" promptText="Choose a catalog" />
|
||||
</HBox>
|
||||
<VBox spacing="20" alignment="CENTER" AnchorPane.topAnchor="10.0" AnchorPane.leftAnchor="10.0"
|
||||
AnchorPane.rightAnchor="10.0">
|
||||
<!-- Start Test Button -->
|
||||
<Button text="Start Test" fx:id="startBtn" onAction="#onStartTestBtnClick"/>
|
||||
<!-- Slider and Input Box -->
|
||||
<HBox spacing="10" alignment="CENTER">
|
||||
<Label text="Number of Questions:"/>
|
||||
<TextField fx:id="questionCountField" promptText="Enter amount"/>
|
||||
<Slider fx:id="questionSlider" min="1" max="10" showTickLabels="true" showTickMarks="true"/>
|
||||
<ComboBox fx:id="catalogComboBox" promptText="Choose a catalog"/>
|
||||
</HBox>
|
||||
|
||||
<!-- Question Display -->
|
||||
<Label fx:id="questionLabel" text="Question will appear here" style="-fx-font-size: 18;"/>
|
||||
<!-- Question Display -->
|
||||
<Label fx:id="questionLabel" text="Question will appear here" style="-fx-font-size: 18;"/>
|
||||
|
||||
<!-- User Input Box -->
|
||||
<TextArea fx:id="userAnswerArea" promptText="Enter your answer here..." wrapText="true" prefHeight="100.0"
|
||||
<!-- User Input Box -->
|
||||
<TextArea fx:id="userAnswerArea" promptText="Enter your answer here..." wrapText="true" prefHeight="100.0"
|
||||
prefWidth="300.0"/>
|
||||
|
||||
<Button text="Next Question" fx:id="nextQuestionBtn" onAction="#showNextQuestion"/>
|
||||
|
||||
<!-- Correct Answer Display -->
|
||||
<VBox spacing="10" alignment="CENTER">
|
||||
<Label text="Correct Answer:" fx:id="correctAnswerLable" style="-fx-font-size: 14;"/>
|
||||
<TextArea fx:id="correctAnswerArea" editable="false" wrapText="true" prefHeight="100.0"
|
||||
prefWidth="300.0"/>
|
||||
|
||||
<Button text="Next Question" fx:id="nextQuestionBtn" onAction="#showNextQuestion"/>
|
||||
|
||||
<!-- Correct Answer Display -->
|
||||
<VBox spacing="10" alignment="CENTER">
|
||||
<Label text="Correct Answer:" fx:id="correctAnswerLable" style="-fx-font-size: 14;"/>
|
||||
<TextArea fx:id="correctAnswerArea" editable="false" wrapText="true" prefHeight="100.0"
|
||||
prefWidth="300.0"/>
|
||||
</VBox>
|
||||
|
||||
<!-- Correct and Incorrect Buttons -->
|
||||
<HBox spacing="10" alignment="CENTER">
|
||||
<Button text="Correct" fx:id="correctBtn" onAction="#onCorrectBtnClick"/>
|
||||
<Button text="Incorrect" fx:id="incorrectBtn" onAction="#onIncorrectBtnClick"/>
|
||||
</HBox>
|
||||
</VBox>
|
||||
<Button text="Back to Main Page" onAction="#onBackToMainPageClick"
|
||||
AnchorPane.bottomAnchor="10.0" AnchorPane.rightAnchor="10.0"/>
|
||||
</children>
|
||||
|
||||
<!-- Correct and Incorrect Buttons -->
|
||||
<HBox spacing="10" alignment="CENTER">
|
||||
<Button text="Correct" fx:id="correctBtn" onAction="#onCorrectBtnClick"/>
|
||||
<Button text="Incorrect" fx:id="incorrectBtn" onAction="#onIncorrectBtnClick"/>
|
||||
</HBox>
|
||||
</VBox>
|
||||
<Button text="Back to Main Page" onAction="#onBackToMainPageClick"
|
||||
AnchorPane.bottomAnchor="10.0" AnchorPane.rightAnchor="10.0"/>
|
||||
</AnchorPane>
|
||||
Loading…
Reference in New Issue
Block a user