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.

21 lines
585 B

5 months ago
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
5 months ago
5 months ago
public class Calculator extends Application {
5 months ago
@Override
5 months ago
public void start(Stage primaryStage) throws Exception {
5 months ago
FXMLLoader loader = new FXMLLoader(getClass().getResource("CalculatorView.fxml"));
5 months ago
Scene scene = new Scene(loader.load());
primaryStage.setTitle("简易计算器");
primaryStage.setScene(scene);
primaryStage.show();
5 months ago
}
public static void main(String[] args) {
5 months ago
launch(args);
5 months ago
}
}