How to pop up a dialog
[ Back to article ] [ Sample overview ]
// create a simple yes/no-dialogint res = JOptionPane.showConfirmDialog( this, "Really quit ?", "Yes/No-Dialog", JOptionPane.YES_NO_OPTION );