JAVA Swing JOptionPane confirm Dialog (Yes/No Option) Example in NetBeans

preview_player
Показать описание
JAVA Swing JOptionPane confirm Dialog (Yes/No) Example in NetBeans

Links Of the Other Tutorial Programs .... Below

#javatutorial
#javaonlinetraining
#javadesktop
#javaswing
#javaswingtutorial
#JoptionPane
#javaPopup
#javanetbeanstutorials
Рекомендации по теме
Комментарии
Автор

Thank you. It was helpful.
Heres the code to exit a JFrame:
//int i = JOptionPane.showConfirmDialog(PARENT, String Message, String Title, JOptionPane.YES_NO_OPTION);

int i = JOptionPane.showConfirmDialog(null, "Do you really want to exit?", "Exit?", JOptionPane.YES_NO_OPTION);
if (i == 1) {
// do nothing
}
if (i == 0) {
System.exit(0);
}

whimsicalvibes
Автор

Thanks a lot, never gonna forget you.

natureboy
Автор

Amazing job. Really needed that information. Many thanks.

yadsarwat
Автор

hi, Can you teach me how to automatically code arbitrary like you do

lapphong
Автор

What's the meaning of 'this' keyword? And why sometimes it is 'null' keyword?. Sorry for asking

anri
Автор

Jajaja musica de minecraft xd excelente

jesusjuvinao