/** * Write a cell renderer component c to device d. Before the component * is drawn it's reparented to this (if that's neccessary). * The Component p is the component we're actually drawing on. */ public void writeComponent(Device d, SComponent c, SComponent p) throws IOException { if (getParent() == null) log.warn("SCellRendererPane: parent == null!"); if (getParentFrame() == null) log.warn("SCellRendererPane: parentFrame == null!"); if (c == null || !c.isVisible()) { return; } addComponent(c); c.write(d); remove(c); } }