Java JOptionPane Yes/No Confirm Dialog Box - Get User Input (Simple)

preview_player
Показать описание
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.

Java JOptionPane Yes/No Confirm Dialog Box - Get User Input (Simple)
Рекомендации по теме
Комментарии
Автор

Thank you very much, your video helped me a lot here in Brazil, it made my project better :)

Vitin_Neto