How to do when you click on the NO option of a confirmdialog, stay there in a form jframe of netbeasn?
private void jButton3MouseClicked( java.awt.event.MouseEvent evt ) {
int ax = JOptionPane.showConfirmDialog(
null,
"Esta Seguro Que Desea Salir?"
);
if ( ax == JOptionPane.YES_NO_OPTION ) {
JOptionPane.showMessageDialog(
null,
"Hasta Pronto,Que Tengas Un Buen Dia."
);
}
System.exit(0);
if ( ax == JOptionPane.NO_OPTION ) {
JOptionPane.showMessageDialog(
null,
"Has seleccionado NO."
);
}
}