//HelloFancy.java //Andy Harris, 4/00 //much improved 'Hello' applet import java.awt.*; import java.applet.*; public class HelloFancy extends Applet{ public void init(){ //Create a label object called myLabel Label myLabel = new Label("Hello, world!!!"); //Create a font object called myFont Font myFont = new Font("SansSerif", Font.PLAIN, 20); //Pretty up the label myLabel.setFont(myFont); myLabel.setBackground(Color.blue); myLabel.setForeground(Color.white); myLabel.setAlignment(Label.CENTER); //add the label to the applet so we can see it add(myLabel); } // end init } // end applet