-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
40 lines (34 loc) · 1.04 KB
/
App.java
File metadata and controls
40 lines (34 loc) · 1.04 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
package cartoon;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
/**
* Here's cartoon! Your first JavaFX assignment!
* Before you start coding your cartoon, take a look at
* the lecture slides and JavaFX Guide for all the
* information you'll need (and more!).
*
* Please put your overall comments for the project here.
*
*/
public class App extends Application {
@Override
public void start(Stage stage) {
// Create top-level object, set up the scene, and show the stage here.
PaneOrganizer organizer = new PaneOrganizer();
Pane root = organizer.getRoot();
Scene scene = new Scene(root, 800, 600);
stage.setScene(scene);
stage.show();
root.requestFocus();
System.out.println("You may press keys.");
}
/*
* Here is the mainline! No need to change this.
*/
public static void main(String[] argv) {
// launch is a method inherited from Application
launch(argv);
}
}