There are some example (Trial) classes in the test directory, like this one:
https://github.com/JFXtras/jfxtras-labs/blob/2.2/src/test/java/jfxtras/labs/scene/control/CalendarTextFieldTrial1.java
The currently selected or entered date (Calendar) is available via the value property. And that you can bind or listen to.
Tom
BTW: Calendar itself is not immutable, but the control treats it as an immutable. You should not try to use the Calendar's setter. Also, there currently is a LocalDatePicker and soon also LocalDateTextField.
On 2013-05-14 17:32,
joseph....@gmail.com wrote:
> This is my first foray into JFXtras. The CalendarTextField and CalendarTimeTextField are some of the first instances of date/time specific widgets that seem to have promise for handling date (and times) reasonably well. How do I bind a CalendarTextField to a data model property? I see that the property needs to be a java.util.Calendar, which is immutable. Is there a way to make the field "mutable" to allow for a date/time entered by the user to be set into the model property and vice versa? I tried binding the widget valueProperty to an ObjectProperty<Calendar> but it does not seem to set the value into the property. What is the correct way to do this? Thanks.
> --
> You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
jfxtras-user...@googlegroups.com.
> To post to this group, send email to
jfxtra...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/jfxtras-users?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>