![]() The core module doesn't have a main class, and it looks like this. The exacutable module has a main class and the pom.xml looks like this Public class MyFrame extends JFrame implements ActionListener I'm a complete beginner, so any advice would be really helpful.įtDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ![]() This seems to only be a problem when there are multiple panels involved, or when I switch between them. So when I click the button in the menu panel to start the game, the graphics load up fine, but the key listener doesn't work at all. The menu panel just has a start button and the game panel is just a black screen with a square that's supposed to move when the arrow keys are pressed. Below is a simplified version of my code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |