Set Background Color Of an Applet Window Example. This java example shows how to set background color of an Applet window using. setBackground method of component class. */. /*.