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