title: CardLayout not completely hiding other cards?
body: <p>I am building a game, and to switch between the login screen and the game screen, I am using a <code>CardLayout</code>.</p>
  
  <p>The code I am using to switch between the screens is</p>
  
  <pre><code>Global.gameScreen = new GameScreen(Global.connectionHandler.clientSocket);
  cards.add(Global.gameScreen,"gameScreen");
  ((CardLayout)cards.getLayout()).show(cards,"gameScreen");
  </code></pre>
  
  <p>What happens, though is after I switch the screen, if I move my mouse over where the Swing controls in the login screen were, they appear and I can interact with them.</p>
  
  <p>Is there a specific way I should switch cards?</p>