-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
41 lines (33 loc) · 1.12 KB
/
Copy pathMain.java
File metadata and controls
41 lines (33 loc) · 1.12 KB
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
32
33
34
35
36
37
38
39
40
41
package com.csgt;
import com.csgt.controller.ControllerUtil;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
/**
* This is the main Class for the Call Stack Graph Tool.
* It is responsible for loading the main.fxml layout and all the associated layout files.
*/
public class Main extends Application {
private static final String mainFXML = "/fxml/main.fxml";
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
try {
FXMLLoader loader = new FXMLLoader();
loader.setLocation(getClass().getResource(mainFXML));
Parent content = loader.load();
Scene scene = new Scene(content, 1000, 500);
primaryStage.setScene(scene);
primaryStage.setTitle("Call Stack Graph Tool");
primaryStage.show();
ControllerUtil.setPrimaryStage(primaryStage);
} catch (IOException e) {
e.printStackTrace();
}
}
}