JOptionPane.showOptionDialog code example
Example 1: java joptionpane
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");
Example 2: Joptionpane.showinputdialog
JOptionPane.showInputDialog("Who is bob?");
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");
JOptionPane.showInputDialog("Who is bob?");