JOptionPane pane = new JOptionPane(message, messageType);
JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE);
  public static Object showInputDialog(Component parentComponent,                                       Object message, String title,                                       int messageType, Icon icon,                                       Object[] selectionValues,                                       Object initialSelectionValue)  {    JOptionPane pane = new JOptionPane(message, messageType);    pane.setWantsInput(true);    pane.setIcon(icon);    pane.setSelectionValues(selectionValues);    pane.setInitialSelectionValue(initialSelectionValue);    JDialog dialog = pane.createDialog(parentComponent, title);    dialog.pack();    dialog.show();    return (String) pane.getInputValue();  }