posted 7 years ago
I have a JFormattedTextField set to a SimpleDateFormat ("HH:mm"). When I enter '8:50' and tab out of the field, the field is changed to '08:50' which is what I want. However, the value in the focusLost method of the focus listener returned by getSource().getText() is what was entered '8:50'. Which focus listener method should I be using to get the field after the formatting has been applied? TIA.