-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRBJavaFXApplication.java
More file actions
41 lines (31 loc) · 982 Bytes
/
RBJavaFXApplication.java
File metadata and controls
41 lines (31 loc) · 982 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
32
33
34
35
36
37
38
39
40
41
package visualization;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
/**
* Red-Black Tree Visualization Application class
*
* Authors: Samantha Fritsche and Katya Gurgel
*/
public class RBJavaFXApplication extends Application {
private final int WINDOW_WIDTH = 1000;
private final int WINDOW_HEIGHT = 600;
private AnchorPane content;
private Parent root;
/**
* Code for application.
*/
@Override
public void start(Stage primaryStage) throws Exception {
root = FXMLLoader.load(getClass().getResource("visualization_region2.fxml"));
Scene scene = new Scene(root);
scene.setFill(Color.BEIGE);
primaryStage.setTitle("Red-Black Tree Visualization");
primaryStage.setScene(scene);
primaryStage.show();
}
}