FileDocCategorySizeDatePackage
SimpleJLabelExample.javaAPI DocExample440Thu Oct 24 20:14:20 BST 2002None

SimpleJLabelExample

public class SimpleJLabelExample extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    JLabel label = new JLabel("A Very Simple Text Label");

    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(label); // adds to CENTER
    frame.pack();
    frame.setVisible(true);