Comments on the JDatePicker UI Component draft JEP
Hampus Ram
hampus.ram at gmail.com
Wed Oct 1 12:23:00 UTC 2025
Hello,
Saw the draft JEP for the JDatePicker UI Component (and the accompanying
issue JDK-8368874) and thought I'd chime in with some observations (that
may have very well already been considered) but that I think would be
necessary for me to use such a control in an application.
A feature that I have found lacking in other date picker components in the
past, and that isn't fully clear if it is intended to be supported in this
JEP is using WeekFields.getFirstDayOfWeek() or similar. The examples all
start on a sunday, but in many places around the world the week starts on a
monday. The calendar should be able to reflect that and maybe that should
be clarified somewhere?
Another feature often missing or neglected that I'm fairly certain isn't at
all in the JEP is the ability to show week numbers. At least here in Sweden
many organizations (and most schools) use week numbers for recurring things
such as vacation and school holidays. Of course this is also something that
works differently in different locales and would need to be handled
correctly. However I don't think it needs to be anything other than a
visual component, you do not need to be able to select a week by clicking
it or supporting any other interaction.
Just my two cents :)
Regards,
Hampus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20251001/f8c0ffa1/attachment.htm>
More information about the client-libs-dev
mailing list