Object message, String title, int messageType)
Object message)
  public static String showInputDialog(Component parentComponent,                                       Object message, String title,                                       int messageType)  {    JOptionPane pane = new JOptionPane(message, messageType);    pane.setWantsInput(true);    JDialog dialog = pane.createDialog(parentComponent, title);    dialog.pack();    dialog.show();    return (String) pane.getInputValue();  }