-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppMain.java
More file actions
31 lines (26 loc) · 809 Bytes
/
Copy pathAppMain.java
File metadata and controls
31 lines (26 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
/**
* @author kawa ryoji
*/
public class AppMain extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
try {
GridPane root = FXMLLoader.load(getClass().getResource("main_view/mainView.fxml"));
Scene scene = new Scene(root, 800, 600);
primaryStage.setScene(scene);
primaryStage.setTitle("Graph Viewer");
primaryStage.setFullScreen(false);
primaryStage.show();
} catch (Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
launch(args);
}
}