// Program to display string in Status window.
import java.awt.*;
import java.applet.*;/*
<applet code="Applet04" width="300" height="50">
</applet>
*/public class Applet04 extends Applet
{
public void init()
{
setBackground(Color.yellow);
}public void paint(Graphics g)
{
g.drawString("Java Programming Examples.", 10, 20);
showStatus("See more examples from www.bethedeveloper.com");
}
}
Output: