FileDocCategorySizeDatePackage
RootExample.javaAPI DocExample563Thu Oct 24 20:14:24 BST 2002None

RootExample

public class RootExample extends Object

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

    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JRootPane root = f.getRootPane();          // XXX Pay attention to these
    Container content = root.getContentPane(); // XXX lines. They get more
    content.add(new JButton("Hello"));         // XXX explanation in the book.
    f.pack();
    f.setVisible(true);