Java JOptionPane Yes/No Confirm Dialog Box - Get User Input (Simple)
Max O'Didily
Java JOptionPane Yes/No Confirm Dialog Box - Get User Input (Simple)
Greetings, today we shall be looking at how to get user input using a Java JOptionPane confirm dialog box. This is used to spawn a box with a message/question with a yes and no button.
We store which button the user clicked and we can use an if statment to check what the input from the JOptionPane confirm dialog box was. We can then do something different for the yes and no option.
The Java JOptionPane confirm dialog box is really handy for confirming a decision, like closing an application or deleting something important.
Thanks for watching this quick tutorial on how to get yes/no user input using a Java JOptionPane confirm dialog box.
Subscribe to keep notified when I upload: https://tinyurl.com/SubMaxODidily
Java JOptionPane Yes/No Confirm Dialog Box - Get User Input (Simple) ... https://www.youtube.com/watch?v=TFBRiICqLeg
10333335 Bytes