dimanche 31 juillet 2016

How to modify the object of a javafx object property calling change listeners?

I have a javafx.beans.property.ObjectProperty<Calendar>. How can I modify the Calendar, so that javafx is registering it and the change listeners are invoked?

So, when I try to set the calendar field Calendar.YEAR is there a better solution than

Calendar c = duedateCalendar.get();
c.set(Calendar.YEAR,2017);
duedateCalendar.set(c);

Aucun commentaire:

Enregistrer un commentaire