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.
31 lines
766 B
31 lines
766 B
package java6239.uml;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.stage.Stage;
|
|
|
|
public class DecimalConversion extends Application {
|
|
|
|
@Override
|
|
public void start(Stage primaryStage) throws Exception {
|
|
// 加载 FXML 文件
|
|
Parent root = FXMLLoader.load(getClass().getResource("DecimalConversion.fxml"));
|
|
|
|
// 设置场景
|
|
Scene scene = new Scene(root,400,400);
|
|
|
|
// 设置窗口标题
|
|
primaryStage.setTitle("进制转换器");
|
|
|
|
// 设置场景并显示窗口
|
|
primaryStage.setScene(scene);
|
|
primaryStage.show();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
launch(args);
|
|
}
|
|
}
|