I need some help. I have an ArrayList
of Textfield
s.
static List<TextField> lfLetters = new ArrayList<>();
And I want to check if the value has changed. And if it was I want to know which textfield it was. I know I can do this with a Listener but that only worked for a single one.
TextField textField = new TextField();
textField.textProperty().addListener((observable, oldValue, newValue) -> {
System.out.println("textfield changed from " + oldValue + " to " + newValue);
});
I want it to work on an Array and determine which textfield has changed.
Thanks in advance!