Write an applet which will demonstrate following methods- • setFont() • setColor • showStatus() • setBackground()

0
858
Want create site? Find Free WordPress Themes and plugins.
 /*Write an applet which will demonstrate following methods-
• setFont()
• setColor
• showStatus()
• setBackground()*/
import java.awt.*;
import java.applet.*;
/*
<applet code="A.class" width=400 height=450></applet>
*/
public class A extends Applet
{
public void paint(Graphics g)
{    
//setBackground
setBackground(Color.red);
//showStatus
showStatus("Runing .....");
//setFont
Font b=new Font("TimesRoman",Font.BOLD,36);
g.setFont(b);
g.drawString("Hi People Here(timesromanplain)",10,25);
}
}
Did you find apk for android? You can find new Free Android Games and apps.

LEAVE A REPLY