From 29f8cedf68c5e45ca20078a2a34a07875d7dea5b Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 27 Nov 2001 10:52:05 +0000 Subject: HelloJava removed --- src/HelloSwingApplet.java | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/HelloSwingApplet.java (limited to 'src/HelloSwingApplet.java') diff --git a/src/HelloSwingApplet.java b/src/HelloSwingApplet.java deleted file mode 100644 index 1a6a436..0000000 --- a/src/HelloSwingApplet.java +++ /dev/null @@ -1,25 +0,0 @@ -import javax.swing.*; //This is the final package name. -//import com.sun.java.swing.*; //Used by JDK 1.2 Beta 4 and all - //Swing releases before Swing 1.1 Beta 3. -import java.awt.*; - -public class HelloSwingApplet extends JApplet { - - // This is a hack to avoid an ugly error message in 1.1. - public HelloSwingApplet() { - getRootPane().putClientProperty("defeatSystemEventQueueCheck", - Boolean.TRUE); - } - - public void init() { - JLabel label = new JLabel( - "You are successfully running a Swing applet!"); - label.setHorizontalAlignment(JLabel.CENTER); - - //Add border. Should use createLineBorder, but then the bottom - //and left lines don't appear -- seems to be an off-by-one error. - label.setBorder(BorderFactory.createMatteBorder(1,1,2,2,Color.black)); - - getContentPane().add(label, BorderLayout.CENTER); - } -} -- cgit v1.2.3