I just started workin with javafx. I got my GUI done by Scene Builder with the first line here:
<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="645.0" xmlns="http://javafx.com/javafx/8.0.112-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sopraFx.extended.controller.SimpleController">
So I set the Controller. It gives me Stackoverflowexpection in line 26 which is the one saying:
"scene = loader.load();"
public SimpleController(){
// this.scene = new SimpleScene();
FXMLLoader loader = new FXMLLoader();
loader.setLocation(getClass().getResource("../view/SimpleScene.fxml"));
try {
scene = loader.load();
} catch (IOException e) {
e.printStackTrace();
}
view = loader.getController();
initialize();
}
This one is the Constructor of my Controller.
Would really appreciate your help! Thank you!
Stacktrace: http://pastebin.com/t9z2GHYs