How can I switch between jpanels?
问题 I'm still very new to java programming, so please help me to correct any mistakes I might have overlooked or give tips on how to improve this program. Okay, so a lot of problems have been solved, and now I have a CardLayout, but I still have questions about how I should make my pipes show inside it. When I tried to add in my refresh rate timer and my speed timer, I have problems about how I need to declare and initialize boolean variables. Also, when I compile and run this game, I get files