fd.setSelectedIndex(0);
      public DelimitedDialog(JFrame parent) {         JPanel opts = new JPanel();         opts.setBorder(BorderFactory.createTitledBorder(                                    LangTool.getString("delm.labelOptions")));         opts.setLayout(new AlignLayout(2,5,5));         JLabel fdl = new JLabel(LangTool.getString("delm.labelField"));         JComboBox fd = new JComboBox();         fd.addItem(",");         fd.addItem(";");         fd.addItem(":");         fd.addItem("|");         fd.addItem(LangTool.getString("delm.labelSpace"));         fd.addItem(LangTool.getString("delm.labelTab"));         fd.setEditable(true);         fd.setSelectedIndex(0);         JLabel tdl = new JLabel(LangTool.getString("delm.labelText"));         JComboBox td = new JComboBox();         td.addItem("\"");         td.addItem("'");         td.setEditable(true);         td.setSelectedIndex(0);         opts.add(fdl);         opts.add(fd);         opts.add(tdl);         opts.add(td);         Object[]      message = new Object[1];         message[0] = opts;         String[] options = {UIManager.getString("OptionPane.okButtonText"),                              UIManager.getString("OptionPane.cancelButtonText")};         int result = JOptionPane.showOptionDialog(             parent,                            // the parent that the dialog blocks             message,                           // the dialog message array             LangTool.getString("delm.title"),    // the title of the dialog window             JOptionPane.DEFAULT_OPTION,        // option type             JOptionPane.PLAIN_MESSAGE,      // message type             null,                              // optional icon, use null to use the default icon             options,                           // options string array, will be made into buttons//             options[0]                         // option that should be made into a default button         );         switch(result) {            case 0: // change options               delimiter = (String)fd.getSelectedItem();               if (delimiter.equals(LangTool.getString("delm.labelSpace")))                  delimiter = " ";               if (delimiter.equals(LangTool.getString("delm.labelTab")))                  delimiter = "\t";               stringQualifier = (String)td.getSelectedItem();               break;            case 1: // Cancel   //		      System.out.println("Cancel");               break;            default:               break;         }      }