addComponent(loadOnStart = new JCheckBox("Load Dictionary on Start?")); loadOnStart.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.load-dictionary")); addComponent(resetDict = new JCheckBox("Reset Ignored Words after each spellcheck?")); resetDict.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.reset-spellchecker")); addComponent(defaultChecker = new JCheckBox("Disable mode-specific checking?")); defaultChecker.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.default-checker")); addComponent(disk_based = new JCheckBox("Use disk based dictionary?")); disk_based.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.disk-based"));
addComponent(resetDict); addComponent(defaultChecker); addComponent(disk_based);
  protected void _init() {    JTextArea jta = new JTextArea();    jta.setEditable(false);    jta.setLineWrap(true);    jta.setWrapStyleWord(true);    jta.setText("Changing these properties will not have an effect until jEdit is restarted.");    dictDir = new JTextField(jEdit.getProperty("options.jazzy.dictionary"), 20);    JLabel userDirLab = new JLabel("Dictionary Location (restart jEdit to enable)");    JPanel p = new JPanel();    p.add(userDirLab);    p.add(dictDir);    /* 4 Feb '03: Added filechooser to options. */    p.add(new JButton(new AbstractAction("Browse...") {      public void actionPerformed(ActionEvent e) {        int mode = (disk_based.getModel().isSelected() ? VFSBrowser.CHOOSE_DIRECTORY_DIALOG : VFSBrowser.OPEN_DIALOG);        String[] files = GUIUtilities.showVFSFileDialog(jEdit.getActiveView(), dictDir.getText(), mode, false);        dictDir.setText((files[0] != null) ? files[0] : "");      }    }));    addComponent(p);    addComponent(loadOnStart = new JCheckBox("Load Dictionary on Start?"));    loadOnStart.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.load-dictionary"));    addComponent(resetDict = new JCheckBox("Reset Ignored Words after each spellcheck?"));    resetDict.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.reset-spellchecker"));    addComponent(defaultChecker = new JCheckBox("Disable mode-specific checking?"));    defaultChecker.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.default-checker"));    addComponent(disk_based = new JCheckBox("Use disk based dictionary?"));    disk_based.getModel().setSelected(jEdit.getBooleanProperty("options.jazzy.disk-based"));  }