org.brains2b.swingext.mask
Class DateValidator

java.lang.Object
  extended by javax.swing.InputVerifier
      extended by org.brains2b.swingext.mask.DateValidator
All Implemented Interfaces:
InputValidator

public class DateValidator
extends javax.swing.InputVerifier
implements InputValidator

DateValidator is an InputValidator that functions like a display mask for dates.

For the format of the Date any valid format as defined in SimpleDateFormat can be used. The date inputted will be displayed conforming to this format.

NoteYou can display time information through the mask, but the verify does not allow inserting of times, so the current time will be displayed.