private void updateOkButton(){
  okButton.setEnabled(isSomethingToSave());
}

private void updateOkButton ( ) { okButton . setEnabled ( isSomethingToSave ( ) ) ; }
checks if the current input isn ' t empty ( after formatting ) and enables or diables the " add " button accordingly .
