9/17/2008
9/17/2008
9/17/2008
9/17/2008
Confirmation Dialog
•A confirmation dialog can be used to prompt the user to determine whether to continue a repetition or not.
wu18847_0606
JOptionPane.showConfirmDialog(null,
/*prompt*/     "Play Another Game?",
/*dialog title*/   "Confirmation",
/*button options*/ JOptionPane.YES_NO_OPTION);