News

Alternatively, to limit a user’s response to just yes, no or cancel, you can use the JOptionPane’s showConfirmDialog() method. This function displays a message box with only three options, and returns ...