<div dir="ltr"><div><br></div><div><span style="color:black">**Is it of interest ?</span>**<br>
</div><div><br></div><div>I believe it is of interest.<br></div><div><br>
<span style="color:black">**Would you use it ?**</span><br>
</div><div><br></div><div>If date / time input is definitely necessary, much better than searching for various implementations having varying quality / support.</div><div>However recently we had to write a Combo like for time range (e.g. `Aug 25, 11:52 am – Aug 27, 11:52 am` , and drop down with options like Past X Hours, Past X Days), which is a tad different than a date time picker.<br></div><div><br>
<span style="color:black">**What features must it have ?**</span></div><div><span style="color:black"><br></span></div><div><span style="color:black">While I tend to agree with the enumerated features </span>of SWinxy and Andy Goryachev, I believe the model should be open and extensible enough to support features that are nice but non critical (e.g. one may want to select multiple dates, or a range).</div><div>I believe the formatting in particular should work for multiple locales and multiple formats, as french dates are entered in a human way, but recognizing ISO 8601 could be nice as well.</div><div><span style="color:black"><br></span></div><div><span style="color:black">On the Swing aspect : I believe there should be three main components working together but usable on their own :</span></div><div><span style="color:black"><br></span></div><div><span style="color:black">1. A combobox-like with a text field using a customizable parser. This combobox-like could create a popup that can be any component (current combobox do not allow anything else than a JList based popup). This would allow one to </span><span style="color:black"> customize the popup (placement left-right, width and its content, e.g. two months, adding other controls on any side) or even </span><span style="color:black">reuse this </span><span style="color:black">combobox-like for other purposes (e.g. an hex color text whose popup is a color picker). </span></div><div><span style="color:black">2. The </span><span style="color:black">combobox-like </span><span style="color:black"> editor could benefit from being date time aware, e.g. to select parts like the month or the minute.<br></span></div><div><span style="color:black">3. The calendar time view, that could be used outside the popup, e.g. for a multi-month panel. This calendar view should allow some tweaking of the rendering (decorations), e.g. one may want to reuse this calendar view to represent something that spans over an interval (like on multiple days). The calendar should support mouse motion, when hovering, to tweak the day or a span over days (that may be represented as line, or dots, etc).<br></span></div><div><span style="color:black"><br></span></div><div><span style="color:black">So for example one could compose these components to create a time-range selector.<br></span></div><div>
<br>
<span style="color:black">**What features are nice to have ?**</span></div><div><br></div><div>I believe some features like OS formatting are nice but not essential and possibly not wanted.<br></div><div>
<br>
<span style="color:black">**Do you have any experiences of other date pickers that reinforce those responses ?**</span><br>
</div><div>I have used the Datadog time range picker which is very practical to use from a user standpoint.<br></div><div><br>
<span style="color:black">**Anything else ?**</span></div><div>Nothing at this time<br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>-- Brice</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2024 at 4:27 PM Taylor Smock <<a href="mailto:taylor.smock@kaart.com">taylor.smock@kaart.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 8/21/24 23:00, Tejesh R wrote:<br>
> Hello Swing Community,<br>
> [...] so we are considering revisiting the idea of a Date Picker in core Swing. [...]<br>
> - Is it of interest ?<br>
Yes. The OSS application I work on (<a href="https://josm.openstreetmap.de" rel="noreferrer" target="_blank">https://josm.openstreetmap.de</a>) has some areas in the UI where it would be nice to have a date picker. Some plugins for the app use third-party components to provide a date picker UI, but the non-plugin date pickers are text only.<br>
> - Would you use it ?<br>
Yes. Eventually -- whenever we make the version of Java with the date picker the minimum required version. That will probably be a decade after GA for the date picker. For reference, we only stopped supporting Java 8 in the past year. We still support Java 11, and we will _likely_ be held back by the default-jre in Debian going forward.<br>
We *do* support the latest Java versions, but for our users, we try to support as many versions of possible (we distribute jlink binaries, jars, and jnlp files (for OpenWebStart)).<br>
> - What features must it have ?<br>
For our usage, we just need users to be able to pick dates; almost all of our use cases don't require time as well.<br>
So:<br>
* User selection of a date<br>
> - What features are nice to have ?<br>
* User selection of a date range -- this can be done outside of the JDK if necessary.<br>
> - Do you have any experiences of other date pickers that reinforce those responses ?<br>
I've used <a href="https://github.com/JDatePicker/JDatePicker" rel="noreferrer" target="_blank">https://github.com/JDatePicker/JDatePicker</a> in the past in a plugin for the OSS application.<br>
> - Anything else ?<br>
No.<br>
</blockquote></div>