c.setDoubleBuffered(false);
c.setOpaque(false);
c.setForeground(Color.BLACK);
c.setSize(bounds.width, bounds.height);
g.translate(bounds.x,bounds.y);
c.doLayout();
c.print(g);
g.translate(-bounds.x,-bounds.y);
}
else rendererPane.paintComponent(g,c,container,bounds.x,bounds.y,bounds.width,bounds.height,true);
}