title: problem with threading JAVA
body: <p>I'm trying to make so that when I press a button the program starts a method in a new thread.
  The problem is that when I press the button the program freezes until the method is done running like i didn't use a thread at all. Does anyone know how to solve this problem? </p>
  
  <p>Thanks Morgan.</p>
  
  <pre><code>public Listeners()
  {
    Calendar.ButtonAddReminder.addActionListener(new ButtonAddListener());
  }
  
  private class ButtonAddListener implements ActionListener
  {
    public void actionPerformed(ActionEvent e) {
        new Thread(Calendar.reminder.Reminderchecker(Calendar.reminder.addReminder(date, str))) .start();
    }
  }
  </code></pre>