if (par.getStyle().getBorder() != null) {
Border b = par.getBorder();
if (b != null && b.isBackgroundPainter()) {
g.translate(-par.getX(), -par.getY());
b.paintBorderBackground(g, par);
b.paint(g, par);
g.translate(par.getX() - transX, par.getY() - transY);
}
} else {
Painter p = par.getStyle().getBgPainter();
if (p != null) {