title: using sleep() for a single thread
body: <p>I am fairly new to java, and am starting to get into using different threads in order to use <code>wait()</code> or <code>sleep()</code> on one part of my code and have the others still run.</p>
  
  <p>For this project, I am using <code>JFrame</code> with the <code>javax.swing.*</code> and <code>java.awt.*</code> imports. What I am trying to do is have one of the threads (in my code it is the main, starting thread) allow the player to choose a space on the tic tac toe board, and when they click it, it will change icons, and then the AI will wait for 1 second before playing back from the second thread that I created.</p>
  
  <p>Unfortunately, whenever I call <code>ait.sleep(1000)</code> (<code>ait</code> is my thread name) both threads wait for 1 second before finishing their execution. Can anyone tell me why sleeping one thread is stopping my whole execution?</p>