FileDocCategorySizeDatePackage
RootExample.javaAPI DocExample421Mon Nov 09 12:45:54 GMT 1998None

RootExample

public class RootExample extends Object

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

    JFrame f = new JFrame();
    f.addWindowListener(new BasicWindowMonitor());
    JRootPane root = f.getRootPane();          // XXX
    Container content = root.getContentPane(); // XXX
    content.add(new JButton("Hello"));         // XXX
    f.pack();
    f.setVisible(true);