g.setColor( bgColor );
} else {
g.setColor( Color.WHITE );
}
g.fillRect( 0, 0, scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight() );
g.drawImage( 0, 0, scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight(),
scaledBgImage, 0, 0, 0 );
Background bg = BackgroundFactory.createBitmapBackground( bgImg,
Background.POSITION_X_CENTER, Background.POSITION_Y_CENTER, Background.REPEAT_SCALE_TO_FIT );
this.setBackground( bg );