I want cut my code in fxml.
fx1.textProperty().addListener((observable, oldValue, newValue)->{
doThis();
});
fx2.textProperty().addListener((observable, oldValue, newValue)->{
doThis();
});
fx3.textProperty().addListener((observable, oldValue, newValue)->{
doThis();
});
fx4.textProperty().addListener((observable, oldValue, newValue)->{
doThis();
});
fx5.textProperty().addListener((observable, oldValue, newValue)->{
doThis();
});
I want loop in this component. Any suggestions?