changeset 4217:7e373b49ebaa

RT-30549: DatePicker doesn't allow to type date when using non-ISO chronology
author leifs
date Mon, 08 Jul 2013 16:26:41 -0700
parents 31136be6a98a
children fad6a5daeb8f
files modules/controls/src/main/java/javafx/scene/control/DatePicker.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/DatePicker.java	Tue Jul 09 11:02:44 2013 +1200
+++ b/modules/controls/src/main/java/javafx/scene/control/DatePicker.java	Mon Jul 08 16:26:41 2013 -0700
@@ -389,6 +389,7 @@
                     new DateTimeFormatterBuilder().parseLenient()
                                                   .appendPattern(pattern)
                                                   .toFormatter()
+                                                  .withChronology(chrono)
                                                   .withDecimalStyle(DecimalStyle.of(locale));
                 TemporalAccessor temporal = df.parse(text);
                 ChronoLocalDate cDate = chrono.date(temporal);