JOptionPane showConfirmDialog with YES_NO_OPTION and ImageIcon
Show a message and get a conformation (like Ok/Cancel).The showConfirmDialog return integers to indicate which button the user choose. For the confirmation dialog, the return value can be one of the following : OK_OPTION CANCEL_OPTION YES_OPTION NO_OPTION CLOSED_OPTION Program Program Source import javax.swing.JOptionPane; import javax.swing.ImageIcon; public class Javaapp { public static void … Read more…