JFrame f = new JFrame("Flow");
f.addWindowListener(new WindowAdapter( ) {
public void windowClosing(WindowEvent e) { System.exit(0); }
});
f.setSize(400, 75);
f.setLocation(200, 200);
Flow flow = new Flow( );
f.setContentPane(flow);
f.setVisible(true);