public void applyFormat(){
  if (isValidFormat()) {
    m_Format=new SimpleDateFormat(m_FormatText.getText());
    m_propSupport.firePropertyChange(null,null,null);
  }
 else {
    throw new IllegalArgumentException("Date format '" + m_FormatText.getText() + "' is invalid! Cannot execute applyFormat!");
  }
}

public void applyFormat ( ) { if ( isValidFormat ( ) ) { m_Format = new SimpleDateFormat ( m_FormatText . getText ( ) ) ; m_propSupport . firePropertyChange ( null , null , null ) ; } else { throw new IllegalArgumentException ( "Date format '" + m_FormatText . getText ( ) + "' is invalid! Cannot execute applyFormat!" ) ; } }
sets the format , but only if it ' s a valid one
