title: Best way to make a thread start from a jbutton?
body: <p>I have 15 different threads running all with dynamic input from the user. I need these Threads to run ONLY when my JButton is pressed. I know i didnt supply the code for the button but its just a simple deceleration.</p>
  
  <p><code>JButton JButton_Button1 = new JButton("Start");</code></p>
  
  <p>To clarify one more time i just want the thread to start only when <code>JButton_Button1</code> is clicked</p>
  
  <pre><code>new Thread() {
          int counter = 10;
          public void run() {
              while(counter &gt;= 0) {
                  JLabel_MistyvaleLoot.setText("Test" + (counter--));
                  try{
                      Thread.sleep(1000);
                  } catch(Exception e) {}
              }
          }
      }.start();
  </code></pre>