joptionpane showoptiondialog code example Example: Joptionpane.showinputdialog JOptionPane.showInputDialog("Who is bob?");