FileDocCategorySizeDatePackage
BGTest1.javaAPI DocExample591Mon Jan 09 11:01:58 GMT 2006None

BGTest1

public class BGTest1 extends Object

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

        JFrame frame = new JFrame("Transparent Window");
        TransparentBackground bg = new TransparentBackground(frame);
        bg.setLayout(new BorderLayout());
        JButton button = new JButton("This is a button");
        bg.add("North",button);
        JLabel label = new JLabel("This is a label");
        bg.add("South",label);
        frame.getContentPane().add("Center",bg);
        frame.pack();
        frame.setSize(150,100);
        frame.show();