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.
math-paper-generator/target/classes/fxml/grade_select.fxml

25 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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.GradeSelectController" stylesheets="@../styles/app.css" prefWidth="560" prefHeight="420">
<fx:define>
<ToggleGroup fx:id="gradeGroup" />
</fx:define>
<children>
<Label text="选择年级与题量" styleClass="title" />
<Label fx:id="welcomeLabel" styleClass="info" text="欢迎:" />
<HBox spacing="10">
<RadioButton text="小学" fx:id="primaryBtn" toggleGroup="$gradeGroup" selected="true" />
<RadioButton text="初中" fx:id="middleBtn" toggleGroup="$gradeGroup" />
<RadioButton text="高中" fx:id="highBtn" toggleGroup="$gradeGroup" />
</HBox>
<HBox spacing="10">
<Label text="题目数量" />
<TextField fx:id="countField" promptText="输入10-30的正整数" />
<Label text="范围10-30" styleClass="hint" />
<Button text="开始答题" onAction="#onStart" fx:id="startBtn" />
<Button text="修改密码" onAction="#onChangePassword" fx:id="changePwdBtn" />
</HBox>
<Label fx:id="infoLabel" styleClass="info" />
</children>
</VBox>