Hi dangihitesh,
Use the following code To set the background color of a screen.
Code:
Code:
public void paint(Graphics graphics) {
// Sets the BackgroundColor
graphics.setBackgroundColor(Color.RED);
// Clears the entire graphic area to the current background
graphics.clear();
} The
Clear() method from the Graphics class must immediately follow the
setBackgroundColor(int Color) method, as the entire graphic area must be cleared to allow other objects to be drawn.
Cheers,
ARIF