JOptionpane.showOptionDialog help
Object[] options = {"YES", "NO"};
JOptionPane.showOptionDialog (null, "Are you sure you want to leave", "Warning",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
null, options, options [0]
);
there is the code now i cant figure out a way to make the program exit if you say yes.. i know how stupid of me can some one plz help me?
should i write a if with a system.exit or what?

