import java.awt.*; import javax.swing.*; // This code is responsible for displaying the flying Birds public class BirdPanel extends JPanel { public static final int WIDTH = 800; public static final int HEIGHT = 600; private static Image anImage; private static Bird[] birds; public BirdPanel(Bird[] b) { birds = b; anImage = Toolkit.getDefaultToolkit().createImage("beach.jpg");; setPreferredSize(new Dimension(WIDTH, HEIGHT)); } // Display the image and the birds public void paintComponent(Graphics g) { super.paintComponent(g); g.drawImage(anImage, 0, 0, null); for (int i=0; i