Originally posted by Dan Murphy: I'm using a JFormattedTextField and would like to ensure that users can only enter valid dates in the format "dd/MM/yy". My first attempt at achieving this looks like this:
JFormattedTextField dateField = new JFormattedTextField(MaskFormatter("##/##/##"));
However this doesn't quite work because users can enter (for example) "44/13/07". Is there any support in the JDK for masking date input fields?