Using the status window

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> 
</applet> 
*/ 
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

No comments:

Post a Comment