import java.applet.*; import java.awt.*; public class label_word extends Applet { public void init() { Frame f = new Frame(); f.add(new Label("This is Label #1. The final word in this label should be \"off\" but sometimes it is left off", Label.CENTER), BorderLayout.WEST); f.add(new Label("This is Label #2, added to make sure Label #1 doesn't hit the grow box", Label.CENTER), BorderLayout.SOUTH); f.pack(); f.show(); } public void paint(Graphics g) { g.drawString("A frame with a label \"This is a label\" should pop up", 10 , 20); } } // END OF Class label_word