News

With one simple line of code, Java ... user to a ‘yes’, ‘no’ or ‘cancel’, the JOptionPane showOptionDialog method can be used. This method allows you to supply an array of objects to the dialog box.