enter image description hereHere is my GamePanel Classand the CanvasSorry if this is an irritatingly simple problem, but I'm a newbie to the Java language and I can't see where I'm going wrong with this. I get an error with my code when trying to define new GamePanel "cannot find symbol - class GamePanel".
package chickengame;
import javax.swing.*;
/**
*
* @author ec
*/
public class ChickenGame {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame gameFrame = new JFrame("Flying Chicken Game");
gameFrame.add(new GamePanel());
gameFrame.pack();
gameFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//gameFrame.setSize(500,600);
gameFrame.setLocationRelativeTo(null);
gameFrame.setVisible(true);
}
});
}
}