how to stop manual gui to stop and show an joption pane, java netbeans code example Example: java swing dialog box JOptionPane.showMessageDialog(null, "java is fun");