// Solid Background
Background back=BackgroundFactory.createSolidBackground(Color.ANTIQUEWHITE);
setBackground(back);
// Solid Background with Transperancy
Background back=BackgroundFactory.createSolidTransparentBackground(Color.AZURE,180);
setBackground(back);
// Gradient Background
Background back = BackgroundFactory.createLinearGradientBackground(
Color.AZURE,Color.BISQUE,Color.AZURE, Color.BISQUE);
setBackground(back);
// Bitmap Background
Background back = BackgroundFactory.createBitmapBackground(your_image, 0, 0,0);
setBackground(back);
No comments:
Post a Comment