public void insertUpdate(DocumentEvent e){
  m_ApplyButton.setEnabled(isValidFormat());
}

public void insertUpdate ( DocumentEvent e ) { m_ApplyButton . setEnabled ( isValidFormat ( ) ) ; }
gives notification that there was an insert into the document .
