JavaFX datepicker - how to update date in a second datepicker object?
问题 Problem: I've two datepicker object checkIn_date and checkOut_date in the same scene. There is a way to change automatically the date field in the second datepicker object? For example : checkIn_date is set with 2015-08-10 and checkOut_date is set with 2015-08-11. If I change the date field in checkIn_date i.e. 2015-08-22, checkOut_date update automatically to 2015-08-23. Thanks for any advices. 回答1: You can achieve this by adding a listener to your check-in DatePicker , fetch the new value,