return -1;
  public static int showOptionDialog(Component parentComponent,                                     Object message, String title,                                     int optionType, int messageType,                                     Icon icon, Object[] options,                                     Object initialValue)  {    JOptionPane pane = new JOptionPane(message, messageType, optionType, icon,                                       options, initialValue);    JDialog dialog = pane.createDialog(parentComponent, title);    dialog.pack();    dialog.show();    return ((Integer) pane.getValue()).intValue();  }