You are here: Home / Topics / Program to display string in Status window in Java

Program to display string in Status window in Java

Filed under: Java on 2023-09-20 06:36:38

//  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:

About Author:
S
Shyam Dubey     View Profile
If you are good in any field. Just share your knowledge with others.