swingx
  1. swingx
  2. SWINGX-567

JXDatePicker: click into unselectable in popup clears selection

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      567

      Description

      expected: revert to last selected if had any.

      added visual test to expose

        Issue Links

          Activity

          Hide
          kleopatra added a comment -

          the base problem is in JXMonthView: it fires a commit when clicking into an
          unselectable date. Should it? Probably not ... Anyway, with that behaviour the
          picker can't do much more than protecting itself.

          added a visual test method to JXDatePickerIssues to characterize monthView
          behaviour.

          Needs more thought, so postponed .

          Jeanette

          Show
          kleopatra added a comment - the base problem is in JXMonthView: it fires a commit when clicking into an unselectable date. Should it? Probably not ... Anyway, with that behaviour the picker can't do much more than protecting itself. added a visual test method to JXDatePickerIssues to characterize monthView behaviour. Needs more thought, so postponed . Jeanette
          Hide
          kleopatra added a comment -

          part of the problem is the model itself: undefined behaviour as to what is
          expected to happen if setSelectionInterval hits a unselectable. Current
          implementations silently clear the old selection. So the calendar views
          probably behave correct in that they follow the model, but the model misbehaves
          severely. Will open a new issue and make it blocking to this one

          Jeanette

          Show
          kleopatra added a comment - part of the problem is the model itself: undefined behaviour as to what is expected to happen if setSelectionInterval hits a unselectable. Current implementations silently clear the old selection. So the calendar views probably behave correct in that they follow the model, but the model misbehaves severely. Will open a new issue and make it blocking to this one Jeanette

            People

            • Assignee:
              dmouse
              Reporter:
              kleopatra
            • Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: