addImageComponent(e, jb);
    public JComponent getCustomComponent(Element e, Context c) {        JComponent cc = null;        if (e == null) return null;        if (e.getNodeName().equals("img")) {            JButton jb = null;            Image im = null;            try {                im = ImageUtil.loadImage(c, new URL(c.getRenderingContext().getBaseURL(), e.getAttribute("src")).toString());            } catch (MalformedURLException ex) {            }            if (im == null) {                jb = new JButton("Image unreachable. " + e.getAttribute("alt"));            } else {                ImageIcon ii = new ImageIcon(im, e.getAttribute("alt"));                jb = new JButton(ii);            }            jb.setBorder(BorderFactory.createEmptyBorder());            jb.setSize(jb.getPreferredSize());            return jb;        }        //form components        Element parentForm = getParentForm(e);        //parentForm may be null! No problem! Assume action is this document and method is get.        XhtmlForm form = getForm(parentForm);        if (form == null) {            form = new XhtmlForm();            addForm(parentForm, form);        }        cc = form.addComponent(c, e);        return cc;    }