private void putError(String text){
  JOptionPane.showMessageDialog(this,text);
}

private void putError ( String text ) { JOptionPane . showMessageDialog ( this , text ) ; }
put error . show an error message to the user , either printed or as a pop - up dialog .
