Issue Details (XML | Word | Printable)

Key: SWINGX-77
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: kleopatra
Reporter: kentang
Votes: 17
Watchers: 5

If you were logged in you would be able to see more operations.

JXMonthView: Add year selector drop down

Created: 12/Aug/05 11:23 AM   Updated: 21/Mar/11 11:47 AM
Component/s: Calendar
Affects Version/s: 0.9.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File datepicker-year.patch (2 kB) 02/Feb/11 06:25 AM - Emmanuel Bourg


Operating System: All
Platform: All

Issue Links:

Issuezilla Id: 77
Participants: dmouse, Emmanuel Bourg, holzfreiweiss, irond13, Karl Schaefer, kentang, kleopatra, perrito666, rah003 and trejkaz

 Description  « Hide

Currently, the month view panel only allows navigating month by month by
clicking the left and right arrow. If the user wants to select say year 2009,
he or she will have to click the right arrow many many times to get to year

So the enhancement request is to add a year selector drop down so that user can
select any year quickly

dmouse added a comment - 12/Aug/05 02:09 PM


kentang added a comment - 12/Aug/05 05:40 PM

Please also consider adding a month drop down selector....
Again, similar reason, if current month is June and the selected month is Dec,
then user has to click right arrow six times.

If they have a month drop down, then only two clicks!


kleopatra added a comment - 13/Oct/05 02:44 AM

assigned date/month picker related issues to Joshua.

kleopatra added a comment - 28/Oct/05 07:59 AM

cleanup: subcomponent

Karl Schaefer added a comment - 30/Oct/07 04:52 AM
      • Issue 615 has been marked as a duplicate of this issue. ***

rah003 added a comment - 14/Nov/07 11:54 PM

Anybody knows current status? If so please update target as appropriate.

kleopatra added a comment - 15/Nov/07 01:47 AM

nothing in the pipe plus it's a nice-to-have, so postpone.

kleopatra added a comment - 15/Nov/07 03:02 AM
      • Issue 264 has been marked as a duplicate of this issue. ***

irond13 added a comment - 14/Dec/07 12:10 PM
      • Issue 682 has been marked as a duplicate of this issue. ***

irond13 added a comment - 14/Dec/07 12:14 PM

"nothing in the pipe plus it's a nice-to-have, so postpone. "

I disagree, it's definitely a must-have if you consider using a DatePicker for
birthday input. If someone could point me in the right direction (i.e. where is
it that the current two buttons are added) I'd be willing to have a go at it
myself. I really do think it's that essential.

perrito666 added a comment - 17/Feb/09 11:11 AM

I also think that traversing by year would be very useful, since selecting a
date ten years back is somewhat troublesome currently.
I'd like to suggest something like Windows API date picker control, which
behaves like follows:

  • when clicked on month, shows dropdown list of months in current year
  • when clicked on year, shows small editbox and spinner buddy, so user can
    either type year in manually, or spin it up/down (spin step depends on how far
    we have already spinned away from starting position, and it increases "with
    time", so it jumps by one year at start, 10 years after some steps, some more
    years after some more steps etc.)

This behaviour is quite good and ergonomic, and would make selecting of distant
years much easier (birthdays, future expiry dates, etc.)

kleopatra added a comment - 18/Feb/09 05:31 AM

dooh .. what a long-standing issue, and now really has bunch of votes. Yeah,
we'll definitely go into allowing easier big-date-jumps - but not any drop-down
(can't anyway, there's only exactly one drop-down allowed, so couldn't in picker
with open monthView) nor editor solution. We plan to go the more elegant vista
style kind-of "zoomable" ranges. My incubator has a mock-up of that, the
monthview is prepared for it (already has a zoomable property, a dedicated
header component, renderer-based painting ..) , what's missing is the meat in
there, that is actually implement the different range panels. High on priority
for after final.


holzfreiweiss added a comment - 18/Feb/09 06:54 AM

Great! good news ) Kleopatra, could you give any hints about the time
horizon please? (FYI: we are/were about to take something other instead of
DatePicker, because for us the "birthday selection" scenario is critical)

Tamas (Thomas)

kleopatra added a comment - 18/Feb/09 08:14 AM


as you experienced, we're notoriously bad with time-estimates Currently
discussing the next releases, see f.i.:

Trying to squeeze this in as soon as possible.

Sorry for the vagueness

holzfreiweiss added a comment - 18/Feb/09 08:58 AM

Thanks for quick input!!
(Actually I was searching on SwingX, SwingLab pages for milestones/deadlines..
without success.)

kleopatra added a comment - 31/Mar/09 02:32 AM
      • Issue 1070 has been marked as a duplicate of this issue. ***

kleopatra added a comment - 22/Apr/09 08:44 AM

kleopatra added a comment - 23/Apr/09 04:54 AM
  • added implementation of CalendarHeaderHandler which controls a spinner for the
    year (SpinningCalendarHeaderHandler)
  • implemented minimal configuration support via the UIManager values for the new
  • control whether or not the spinner is focusable (default is false)
  • control whether or not the month nav arrows surround the month text (default
    is false)
  • added support to BasicMonthViewUI to find/instantiate custom header
    implementation via a class name registered in the UIManager
  • updated tests

Guys, for my taste this looks ugly - but I'm not the visual designer So if
you come up with improvements (discussed and agreed upon in the forum), I would
happily commit them.

Waiting for feedback

kleopatra added a comment - 12/May/09 08:27 AM
      • Issue 1093 has been marked as a duplicate of this issue. ***

trejkaz added a comment - 11/Apr/10 04:31 PM

I'm interested in this too. The company I work for writes software which
essentially handles only historical data.

Emmanuel Bourg added a comment - 02/Feb/11 05:51 AM

Moving up or down by one year is fundamental for many use cases. As a quick workaround I would suggest implementing SHIFT+Clic on the buttons to skip one year instead of one month.

Emmanuel Bourg added a comment - 02/Feb/11 06:25 AM

Here is a simple patch implementing the shift+clic action on the buttons to skip one year.