Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096911

DatePicker.setEditable(false) does not prevent editing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8u40
    • 8u20
    • javafx
    • None

      After invoking DatePicker.setEditable(false) you can still edit the date by clicking the small calendar button. It seems DatePicker.setEditable(false) corresponds to DatePicker.getEditor().setEditable(false), which I believe is a bug, for how should one prevent editing when it is implemented this way?

      I believe the DatePicker should distinguish between

      1. the DatePicker as a whole being uneditable, which should prevent ANY kind of editing
      2. the DatePicker's text field being uneditable, which should still allow mouse editing using the calendar.

            leifs Leif Samuelsson (Inactive)
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: