final Component parent = ((Component)component).getParent();
final Component parent = component.getParent();
    public Graphics getGraphics() {    	//log.debug("getGraphics");        final Component parent = ((Component)component).getParent();        if (parent != null) {        	final int x = jComponent.getX();        	final int y = jComponent.getY();        	final int width = jComponent.getWidth();        	final int height = jComponent.getHeight();            return parent.getGraphics().create(x, y, width, height);        } else {            throw new Error();        }    }