Snake game in Java but my restart button does not work
Introduction I copied your code into my Eclipse IDE and ran it as is. I received the following runtime error. Exception in thread “main” java.awt.IllegalComponentStateException: The frame is displayable. at java.desktop/java.awt.Frame.setUndecorated(Frame.java:926) at com.ggl.testing.SnakeGame$GameFrame.<init>(SnakeGame.java:41) at com.ggl.testing.SnakeGame.main(SnakeGame.java:24) Oracle has a helpful tutorial, Creating a GUI With Swing. Skip the Learning Swing with the NetBeans IDE section. Pay … Read more