-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTimePicker picker control for time #8
Comments
That's right, it currently only allows you to pick the date and you have to write the time yourself. I did it like this because it's more convenient IMO. Picking the time just takes more time (pun intented), but for date you might need to consult a calendar. There is only one button, so this shouldn't be confusing, but I'd be up for adding a time picker in form of two spinners perhaps, if that's what you're envisioning? Any feedback or sketch you can provide with regards to layout suggestions are most welcome :) |
The project ControlsFX started with a TimePicker, but it did not make it. There is even a JDK feature request for a TimePicker. The project JFoenix has a similar TimePicker implementation: Such a similar TimePicker could be implemented as a second popup after choosing the date. |
Certainly possible, but I think we're better off reimplementing the date picker to support grater freedom and control over the functionality and design. The DateTimePicker in it's current form is simply a hack around the stock DatePicker. I don't have time to look at this right now, but a PR would be most welcome :) |
I would also look forward to a TimePicker! |
That design works on mobile but seems quite cumbersome to use on a desktop IMO. |
Works fine with one small comment. Edit of the time gets lost if you re-pick the date. Think this would be solved for example by using the editor text string (or perhaps adding a commit ). replace: time = localDateTime.toLocalTime(); |
The DateTimePicker does not have a TimePicker, just a DatePicker. The button opens the same calendar as the DatePicker.
The text was updated successfully, but these errors were encountered: