JFrame f = new JFrame("Odd_Shape");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
});
Odd_Shape applet = new Odd_Shape();
applet.buildUI(f.getContentPane());
f.setSize(new Dimension(350,200));
f.setVisible(true);