2025年3月31日14:25:06

master
qmstyle 2025-03-31 14:25:12 +08:00
parent dbc26c70ae
commit 45ad19eb4e
6 changed files with 11 additions and 5 deletions

View File

@ -101,6 +101,9 @@
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,4 +1,5 @@
package com.zhangmeng.online.exam.ui;
import com.zhangmeng.online.exam.ui.admin.LoginPage;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
@ -19,8 +20,11 @@ public class OnlineExamApplication extends Application {
@Override
public void start(Stage stage) throws IOException {
Scene scene = new Scene(new LoginPage());
FXMLLoader loader = new FXMLLoader(OnlineExamApplication.class.getResource("/fxml/login.fxml"));
Parent root = loader.load();
LoginPage loginPage = loader.getController();
Scene scene = new Scene(root);
// Scene scene = new Scene(new LoginPage());
stage.setScene(scene);
stage.setResizable(false);
stage.setTitle("在线考试系统");
@ -28,7 +32,6 @@ public class OnlineExamApplication extends Application {
}
public static void main(String[] args) {
launch();
}

View File

@ -8,7 +8,7 @@
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="fmxl.Index"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>

View File

@ -10,7 +10,7 @@
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<AnchorPane prefHeight="315.0" prefWidth="527.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.zhangmeng.online.exam.ui.admin.LoginController">
<AnchorPane prefHeight="315.0" prefWidth="527.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" >
<children>
<GridPane layoutX="485.0" layoutY="59.0" prefHeight="159.0" prefWidth="364.0" AnchorPane.bottomAnchor="97.0" AnchorPane.leftAnchor="125.0" AnchorPane.rightAnchor="42.0" AnchorPane.topAnchor="59.0">
<columnConstraints>