- Joined
 - Mar 29, 2016
 
- Messages
 - 54
 
My controller was not getting used even after calling setController.
Changing this
	
	
	
		
to this
	
	
	
		
solved the problem.
			
			Changing this
		Code:
	
	// Load fxml file
FXMLLoader fxmlLoader = new FXMLLoader();
fxmlLoader.setController(new GUIController(script, this));
final Parent root = fxmlLoader.load(getClass().getResource("sample.fxml"));
	to this
		Code:
	
	// Load fxml file
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("sample.fxml"));
fxmlLoader.setController(new GUIController(script, this));
final Parent root = fxmlLoader.load();
	solved the problem.


