/**
   * Defines the abstract method in <tt>AbstractPaneItem</tt>.
   *
   * <p>Applies the options currently set in this window, displaying an error message to the user if
   * a setting could not be applied.
   *
   * @throws IOException if the options could not be applied for some reason
   */
  public boolean applyOptions() throws IOException {
    Vector model = RESULTS_LIST.getModel();
    String[] bannedResults = new String[model.size()];
    model.copyInto(bannedResults);

    FilterSettings.BANNED_WORDS.setValue(bannedResults);
    RouterService.adjustSpamFilters();
    return false;
  }
 public boolean isDirty() {
   List model = Arrays.asList(FilterSettings.BANNED_WORDS.getValue());
   return !model.equals(RESULTS_LIST.getModel());
 }
 /**
  * Defines the abstract method in <tt>AbstractPaneItem</tt>.
  *
  * <p>Sets the options for the fields in this <tt>PaneItem</tt> when the window is shown.
  */
 public void initOptions() {
   String[] bannedWords = FilterSettings.BANNED_WORDS.getValue();
   RESULTS_LIST.setModel(new Vector(Arrays.asList(bannedWords)));
 }