function createComponents()
 {
     $button = new java("javax.swing.JButton", "I'm a Swing button!");
     $button->addActionListener(java_closure($this, new JavaClass("java.awt.event.ActionListener")));
     $label->setLabelFor($button);
     $pane = new java("javax.swing.Jpanel", new java("javax.swing.GridLayout", 0, 1));
     $pane->add(button);
     $pane->add(label);
     $BorderFactory = new JavaClass("javax.swing.BorderFactory");
     $pane->setBorder($BorderFactory->createEmptyBorder(30, 30, 10, 30));
     return $pane;
 }