Java Applets With Swing

A Hello World Swing Applet

import javax.swing.*;
import java.awt.*;

public class HelloWorldSwingApplet extends JApplet {
    
    public void init() {
        getContentPane().add(new JLabel("HelloWorldSwingApplet.java"));
    }
    
}
To download source right-click here and "Save As...".
Run the Applet in a new window

Comments
Sign in to be the first to comment on Java Applets With Swing.