Added Raw Data loader for Airline

This commit is contained in:
YaFedImYaEatIm
2016-09-13 16:23:27 +12:00
parent d7ddf99842
commit 6f14fc48f0
3 changed files with 18 additions and 4 deletions
@@ -39,6 +39,8 @@ public class App extends Application
public void start(Stage primaryStage) {
this.primaryStage = primaryStage;
try {
MenuController menuController = new MenuController();
menuController.setApp(this);
replaceSceneContent("menu.fxml");//replace this to check your fxml file
} catch (Exception e) {
e.printStackTrace();
@@ -76,7 +78,7 @@ public class App extends Application
* @return
* @throws Exception
*/
private Initializable replaceSceneContent(String fxml) throws Exception {
public Initializable replaceSceneContent(String fxml) throws Exception {
FXMLLoader loader = new FXMLLoader();
InputStream in = getClass().getClassLoader().getResourceAsStream(fxml);
InputStream menuIn = getClass().getClassLoader().getResourceAsStream("menu.fxml");