I am having trouble instantiating my controller class. When I try to make an instance it comes up null. I have been looking into previous posts about this and the closest I can get is:
Parent root = FXMLLoader.load(getClass().getResource("/gui/GuiFXML.fxml"));
scene = new Scene(root,1024,768);
stage.setScene(scene);
stage.setTitle("Proving Grounds");
stage.show();
GuiController controller = new GuiController();
controller.setTextArea("things and stuff");
Found these related questions but they seem to add more errors rather than fix anything.