java

java

java – How to make a decision structure to close a window?

Question: In the code below, I want that when choosing sim the window will close and when choosing não the window will remain open. private void formWindowClosing(java.awt.event.WindowEvent evt) { // TODO add your handling code here: int Confirm = JOptionPane.showConfirmDialog(null,”Encerrar?”,”sim ou nao”, JOptionPane.YES_NO_OPTION); if (Confirm == JOptionPane.YES_OPTION) { JOptionPane.showMessageDialog(null, “”); …

java – How to make a decision structure to close a window? Read More »

Scroll to Top
AllEscort