Add Comments

This commit is contained in:
code-witch 2019-03-26 15:54:37 -06:00
parent b604cb5f40
commit f9f6327cae

View File

@ -1,28 +1,35 @@
package controller; package controller;
import events.*;
import javafx.application.Application; import javafx.application.Application;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.layout.VBox; import javafx.scene.input.KeyEvent;
import javafx.scene.layout.HBox;
import javafx.stage.Stage; import javafx.stage.Stage;
public final class App extends Application { public final class App extends Application {
public final VBox root = new VBox(); public static final HBox root = new HBox();
public final Scene scene = new Scene(root); public static final Scene scene = new Scene(root);
@Override @Override
public void init() { public void init() {
// Put more init stuff here if need be.
System.out.println("Initialization Completed");
} }
@Override @Override
public void start(Stage stage) { public void start(Stage stage) {
// There's got to be a cleaner way..
scene.addEventFilter(KeyEvent.KEY_PRESSED, new WidgetAdd());
stage.setTitle("JavaTUI"); stage.setTitle("JavaTUI");
stage.setScene(scene); stage.setScene(scene);
stage.show(); stage.show();
} }
} }