Hi, How to set up the background color of an applet ? Default is skycolor. If I want to change to white. Which method I have to use for it? Plz explain by syntax Thanks in advance, angela
Stephanie Grasson
Ranch Hand
Joined: Jun 14, 2000
Posts: 347
posted
0
Angela, This little applet demonstrates changing the background color from skycolor to white and back.
Hope this helps. Stephanie
usman ahmad
Ranch Hand
Joined: Mar 06, 2001
Posts: 46
posted
0
OR
In the paint() method you can use like this <pre> public void paint(Graphics g) { setbackground(Color.anycolor); } </pre> Where anycolor can be white,red,blue etc. I hope this will be helful too. Regards, Usman