public boolean doYesNoDialog(String title,String question){
  ConfirmDialog confirm=new ConfirmDialog(frame,title,question);
  confirm.setVisible(true);
  return confirm.getAnswer();
}

public boolean doYesNoDialog ( String title , String question ) { ConfirmDialog confirm = new ConfirmDialog ( frame , title , question ) ; confirm . setVisible ( true ) ; return confirm . getAnswer ( ) ; }
pops up a dialog box asking a yes / no question
