how to make a prompt gui in java code example Example: java swing dialog box JOptionPane.showMessageDialog(null, "java is fun");