parent
4a703b5ea0
commit
79f0bef06b
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
|
||||
<AnchorPane xmlns:fx="http://javafx.com/fxml"
|
||||
fx:controller="com.example.myapp.controller.ScoreController"
|
||||
prefWidth="400" prefHeight="300"
|
||||
style="-fx-padding: 20;">
|
||||
<children>
|
||||
<Label layoutX="20" layoutY="20" text="考试结果"
|
||||
style="-fx-font-size: 24; -fx-font-weight: bold;"/>
|
||||
|
||||
<VBox spacing="30" layoutX="100" layoutY="80" alignment="CENTER">
|
||||
<Label fx:id="scoreLabel" text="得分: 0 分"
|
||||
style="-fx-font-size: 32; -fx-font-weight: bold; -fx-text-fill: #2c3e50;"/>
|
||||
|
||||
<Label fx:id="commentLabel" text="评价"
|
||||
style="-fx-font-size: 18; -fx-font-weight: bold;"/>
|
||||
|
||||
<HBox spacing="20" alignment="CENTER">
|
||||
<Button fx:id="continueBtn" text="继续做题" onAction="#onContinue"
|
||||
prefWidth="100" prefHeight="40" style="-fx-font-size: 14; -fx-background-color: #3498db; -fx-text-fill: white;"/>
|
||||
<Button fx:id="exitBtn" text="退出登录" onAction="#onExit"
|
||||
prefWidth="100" prefHeight="40" style="-fx-font-size: 14;"/>
|
||||
</HBox>
|
||||
</VBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
Loading…
Reference in new issue