by Dinesh Thakur Category: AWT and Applets

In this showStatusMessage example You can see an message is shown on the Status bar of  applet.

 /* Show status message in an Applet window code using void showStatus(String Message) method of an applet class. */



<applet code="showStatusMessage" width=300 height=200>
import java.applet.Applet;
import java.awt.Graphics;
public class showStatusMessage extends Applet
      public void paint(Graphics g)
           g.drawString("Hello Dinesh Thakur!", 100, 90);
           showStatus("Showing the Status Message in the Applet Window");  //The text in status bar will be shown


show Status Message in Applet Windows

Popular Article