Java
Slip7
Solution
import java.awt.*;
public class Slip7 extends Frame
{
Label text;
public Slip7()
{
text=new Label("Hello World!",Label.CENTER);
Font f=new Font("GEORGIO",Font.BOLD,40);
text.setFont(f);
add(text);
//setBackground(Color.BLUE);
setForeground(Color.RED);
setSize(300,100);
setVisible(true);
}
public static void main(String args[])
{
new Slip7();
}
}
Tags:
java
This comment has been removed by a blog administrator.
ReplyDelete