1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
/* Set Status Message in Applet Window Example This java example shows how to set a status message of an applet window using showStatus method of an Applet class. */ /* <applet code="SetStatusMessageExample" width=200 height=200> </applet> */ import java.applet.Applet; import java.awt.Graphics; public class SetStatusMessageExample extends Applet{ public void paint(Graphics g){ /* * Show status message in an Applet window using * void showStatus(String msg) method of an applet class. */ //this will be displayed inside an applet g.drawString("Show Status Example", 50, 50); //this will be displayed in a status bar of an applet window showStatus("This is a status message of an applet window"); } } |
Example Output
Add Comment