@Override public void error(String message){
  JOptionPane.showMessageDialog(this,message,"Error",JOptionPane.ERROR_MESSAGE);
}

@ Override public void error ( String message ) { JOptionPane . showMessageDialog ( this , message , "Error" , JOptionPane . ERROR_MESSAGE ) ; }
show an error dialog .
