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
744 B
25 lines
744 B
package com.mathgenerator;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.stage.Stage;
|
|
import java.io.IOException;
|
|
|
|
public class MainApplication extends Application {
|
|
|
|
@Override
|
|
public void start(Stage primaryStage) throws IOException {
|
|
// 启动时加载登录界面
|
|
Parent root = FXMLLoader.load(getClass().getResource("/com/mathgenerator/view/LoginView.fxml"));
|
|
primaryStage.setTitle("中小学数学学习软件");
|
|
primaryStage.setScene(new Scene(root));
|
|
primaryStage.setResizable(false);
|
|
primaryStage.show();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
launch(args);
|
|
}
|
|
} |