From f9f6327cae0f23233c52477cc6d5a768d9930825 Mon Sep 17 00:00:00 2001 From: code-witch Date: Tue, 26 Mar 2019 15:54:37 -0600 Subject: [PATCH] Add Comments --- javatui/controller/App.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/javatui/controller/App.java b/javatui/controller/App.java index 8db3a04..cea6bcf 100644 --- a/javatui/controller/App.java +++ b/javatui/controller/App.java @@ -1,28 +1,35 @@ package controller; +import events.*; + import javafx.application.Application; import javafx.scene.Scene; -import javafx.scene.layout.VBox; +import javafx.scene.input.KeyEvent; +import javafx.scene.layout.HBox; import javafx.stage.Stage; public final class App extends Application { - public final VBox root = new VBox(); - public final Scene scene = new Scene(root); + public static final HBox root = new HBox(); + public static final Scene scene = new Scene(root); + @Override public void init() { - + // Put more init stuff here if need be. + System.out.println("Initialization Completed"); } @Override public void start(Stage stage) { - - + // There's got to be a cleaner way.. + scene.addEventFilter(KeyEvent.KEY_PRESSED, new WidgetAdd()); stage.setTitle("JavaTUI"); stage.setScene(scene); stage.show(); } + + }