Java-ShowStatus

showStatus

The showStatus( ) method is used to display the information in applet windows status bar of the browser or Appletviewer. This is used for debugging, because it gives you an easy way to output message.

Program 

1

Program Source

import java.applet.Applet;
import java.awt.Graphics;

public class Javaapp extends Applet {
   
    public void paint(Graphics g)
    {
        g.drawString("Applet started.", 100, 100);
        showStatus("This is shown in the status window.");
    }
}

Leave a Comment