Object source = ae.getSource(); if (source instanceof JEditorPane)
JEditorPane source = getEditor(ae); if (source != null)
      public void actionPerformed(ActionEvent ae)      {        Object source = ae.getSource();        if (source instanceof JEditorPane)          {            JEditorPane pane = ((JEditorPane) source);            Document d = pane.getDocument();            if (d instanceof HTMLDocument)              insertHTML(pane, (HTMLDocument) d, 0, html, 0, 0, addTag);            // FIXME: is this correct parameters?          }        // FIXME: else not implemented      }