public boolean isTextFieldValid(){
  return isTextValid(dateTextField.getText());
}

public boolean isTextFieldValid ( ) { return isTextValid ( dateTextField . getText ( ) ) ; }
istextfieldvalid , this returns true if , and only if , the text field contains a parsable date or a valid empty string . note that this does not guarantee that the text in the text field is in a standard format . valid dates can be in any one of the parsingformats that are accepted by the date picker . more specifically , this returns true if : 1 ) the text field contains a parsable date that exists , and that has not been vetoed by a current veto policy , or 2 ) ( allowemptydates = = true ) and datetextfield . gettext ( ) . trim ( ) contains an empty string . otherwise returns false .
