title: Memory game - Make the 2 cards disappear after X time
body: <p>I wanted to make a "memories" or "find pairs" game for Java, just to start with a basic game before starting something more difficult.  My game works very well, but I just have 1 big problem.  I don't really know how to hide the 2 images x seconds after the user clicks on the second one.</p>
  
  <p>This is what is done:</p>
  
  <ol>
  <li>The game is created with 4x4 buttons in a array</li>
  <li>The values of the cards are distributed (name, position, icon)</li>
  <li>The user then clicks on the first card, which shows up immediately</li>
  <li>The user clicks on the second one, if the first is equal to the second one then disable the 2, if not then re-hide the 2.</li>
  </ol>
  
  <p>But I don't know how I can make the program show the second card and then after x seconds hide the 2...</p>
  
  <p>How can I solve this?</p>