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.
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.
- duplicates
-
JDK-8096254 DatePicker editable even though editable=false
-
- Open
-