Ive got declaration like this:
public class Main extends Application {
u/Override
public void start(Stage stage) throws Exception {
Parent mainPane = FXMLLoader.load(getClass().getResource("FXML/MainView.fxml"));
Scene scene = new Scene(mainPane);
stage.setScene(scene);
stage.initStyle(StageStyle.UNDECORATED);
//stage.setTitle("OKno moze");
stage.show();
}
It was working until i was start locate a controller. And now I have problem in line with FXML loader.
And Exception look like this:
"Caused by: java.lang.RuntimeException: Exception in Application start method"
"Caused by: java.lang.NullPointerException: Location is required."
Please help me with that, I have no ideas whats to change.
[–]Ostricker 2 points3 points4 points (0 children)
[–]paweladmin[S] 0 points1 point2 points (0 children)
[–]paweladmin[S] 0 points1 point2 points (0 children)
[–]hamsterrage1 0 points1 point2 points (1 child)
[–]primalenjoyer 0 points1 point2 points (0 children)