int width = bg.getWidth(null), height = bg.getHeight(null);
g.drawImage( bg, 0, 0, width, height, this );
g.drawImage( bg, width, 0, width, height, this );
g.drawImage( bg, 0, height, width, height, this );
g.drawImage( bg, width, height, width, height, this );
super.paint(g);