You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?import javafx.scene.control.*?>
|
|
<?import javafx.scene.layout.*?>
|
|
<VBox spacing="12" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.coproject.controller.QuizController" stylesheets="@../styles/app.css" prefWidth="700" prefHeight="480">
|
|
<fx:define>
|
|
<ToggleGroup fx:id="optionsGroup" />
|
|
</fx:define>
|
|
<children>
|
|
<Label fx:id="titleLabel" styleClass="title" text="题目" />
|
|
<HBox spacing="8">
|
|
<Label fx:id="questionLabel" wrapText="true" />
|
|
<Label fx:id="roundHintLabel" text="向下取整" styleClass="hint" />
|
|
</HBox>
|
|
<VBox spacing="8">
|
|
<RadioButton fx:id="optA" toggleGroup="$optionsGroup" />
|
|
<RadioButton fx:id="optB" toggleGroup="$optionsGroup" />
|
|
<RadioButton fx:id="optC" toggleGroup="$optionsGroup" />
|
|
<RadioButton fx:id="optD" toggleGroup="$optionsGroup" />
|
|
</VBox>
|
|
<HBox spacing="10">
|
|
<Button text="提交/下一题" onAction="#onSubmit" fx:id="submitBtn" />
|
|
</HBox>
|
|
<Label fx:id="infoLabel" styleClass="info" />
|
|
</children>
|
|
</VBox> |