Java CardLayout Main Menu Problem
问题 Ok so im working on this game in java called 8 bit chimera. Im working on the main menu right now but when im using the card layout the window wont open for some reason. Here is some code. import javax.swing.*; import java.awt.*; public class MainScreen extends JFrame{ String Title = "MainMenu"; MainMenuComp MMC = new MainMenuComp(); BreedingGround BGR = new BreedingGround(); public MainScreen() { setTitle("8-bit Chimera "+Title); setSize(800,600); setResizable(false);