JPanel not updating CardLayout properly when I use sleep
问题 I have written a program which uses CardLayout. I want it to show a JPanel and then, based on the user's input, shows a new JPanel, pause for 3 seconds, and then show another JPanel which requires user input. My JPanel requiring user input works fine, and the debugging I've done has shown me that when the program pauses for 3 seconds, the "filler" panels (see below) are being generated, but just not rendered properly. class sylBetween extends JPanel{ sylBetween(boolean response, String