Image starImage = Toolkit.getDefaultToolkit().getImage(
Starry.starryFile);
StarPanel starPanel = new StarPanel(starImage);
JFrame f = new JFrame("Starry");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
});
f.getContentPane().add(starPanel, BorderLayout.CENTER);
f.setSize(new Dimension(550, 200));
f.setVisible(true);