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(); } + + }