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
581 B

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