Changing the Background Color of the Applet
807598Dec 5 2005 — edited Dec 5 2005I am trying to change the ugly gray color of the background of my applet but if i use setBackground(Color.blue) the blue color flashes and disappears and if i use getContentPane().setBackground(Color.blue); the backgroud becomes gray again as soon as i add a component using getContentPane().add(ButtonBar) for example.
Can anyone propose a solution?
Thanks in advance.