Added Sample Loading for the GUI

This commit is contained in:
YaFedImYaEatIm
2016-09-13 16:16:24 +12:00
parent 5c71a95e63
commit d7ddf99842
4 changed files with 49 additions and 35 deletions
@@ -1,25 +0,0 @@
package seng202.group9.GUI;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
/**
* Main Menu Bar for the program
* @author YaFedImYaEatIm
*
*/
public class MainMenuBar{
final private String menuFXML = "menu.fxml";
public Parent getmenuBar(){
try{
Parent menuPane = FXMLLoader.load(getClass().getClassLoader().getResource(menuFXML));
return menuPane;
}catch (Exception e){
e.printStackTrace();
}
return null;
}
}
@@ -5,10 +5,13 @@ import java.util.ResourceBundle;
import javax.swing.JOptionPane;
import javafx.application.Application;
import javafx.fxml.Initializable;
public class MenuController implements Initializable{
Application parent;
public void importAirports(){
JOptionPane.showMessageDialog(null, "This is not Implemented yet");
}
@@ -29,5 +32,9 @@ public class MenuController implements Initializable{
// TODO Auto-generated method stub
}
public void setApp(Application parent){
this.parent = parent;
}
}