I have combobox with page numbers (1,2,3,etc). When user select the certain page (by mouse or by keyboard(as combobox editable)) I want to show and total pages. That's why on combobox action I do: @FXMLprivatevoid onPageComboBoxAction(ActionEvent event){ .... combobox.setValue(currentPage+"/"+totalPages)
} However this code ( combobox . setValue ) fires one more ActionEvent and code cycles. I tried to use swithers like boolean ignoreActionEvent but it didn't work as it seems event is handled in different thread. How to solve such problem? P.S. I understand that this problem is for user mailing list but I ask at stackoverflow and get no answer.