i have a (shortened) java FX Class:
public class MyReportController extends
javafx.application.Application implements Initializable {
@FXML
private CustomTextField autoTextField;
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
TextFields.bindAutoCompletion(autoTextField, ServiceLocator
.getInstance().getMeasurementService()
.getAllMeasurementNumbers());
}......
the initialzie method is called, but the autoTextField(and all other FXML components) is null.
The Application is started from another class with the main method. First i had the main Method in the controller class with the result, that the controller class was instantiated twice. I think my current problem is related to that.