super.makeActionsPretty();
Action a;
// HTML Actions
a = getTextComponent().getActionMap().get("InsertHR");
a.putValue(Action.SMALL_ICON, new ImageIcon("icons/hr.gif"));
a.putValue(Action.NAME, "HR");
// Custom HTML Actions, need to store these in the map...
// First, an easy use of the InsertHTMLTextAction class
a = new HTMLEditorKit.InsertHTMLTextAction("InsertCopyright", COPY_HTML,
HTML.Tag.BODY, HTML.Tag.P);
a.putValue(Action.SMALL_ICON, new ImageIcon("icons/copyright.gif"));
a.putValue(Action.NAME, "Teletype Text");
getTextComponent().getActionMap().put("add-copyright", a);
// And some of our own Tags that require a little more work.
// See the TagAction inner class below.
a = new TagAction(HTML.Tag.A, "URL", HTML.Attribute.HREF);
a.putValue(Action.SMALL_ICON, new ImageIcon("icons/link.gif"));
a.putValue(Action.NAME, "Anchor Link");
getTextComponent().getActionMap().put("anchor-link", a);
a = new TagAction(HTML.Tag.A, "Name", HTML.Attribute.NAME);
a.putValue(Action.SMALL_ICON, new ImageIcon("icons/anchor.gif"));
a.putValue(Action.NAME, "Anchor Name");
getTextComponent().getActionMap().put("anchor-name", a);
a = new ImageAction();
a.putValue(Action.SMALL_ICON, new ImageIcon("icons/picture.gif"));
a.putValue(Action.NAME, "Image");
getTextComponent().getActionMap().put("InsertIMG", a);