//Program to illustrate the use of set Background and set foreground
//functions.
import java.awt.*;
import java.applet.*;
/*
<applet code=applet3 width=300 height=200>
</applet>
*/
class applet3 extends Applet{
public void init()
{
setBackground(Color.lightGray);
setForeground(Color.red);
}
public void paint(Graphics g)
{
g.drawString("Status applet",50,50);
showStatus("Applet status");
}
}