@Override
public void start(Stage stage) throws Exception {
stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
@Override
public void handle(WindowEvent e)
{
Platform.exit();
}
});
Parent root = FXMLLoader.load(getClass().getResource("/com/miage/pandemie/view/index.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
}
Launch.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:pandemie
作者:
评论列表
文章目录