Java - showConfirmDialog

preview_player
Показать описание
This video demonstrates the use of the showConfirmDialog in Java. This pops a box onto the screen containing a question or a statement and then displays three buttons underneath; Yes, No and Cancel. The program captures which button was pressed and then acts accordingly.

If you want to use Yes/No only then have:-

if (dialogResult == 0) {
}
else {
}
Рекомендации по теме