title: Creating a new Thread error "constructor test in class test cannot be applied to given types"
body: <p>I'm trying to create a new thread for the game I'm making but it keeps giving me this error</p>
  
  <pre><code>Error: constructor test in class test cannot be applied to given types;
    required: no arguments
    found: java.lang.String
    reason: actual and formal argument lists differ in length
  </code></pre>
  
  <p>Heres what is imported</p>
  
  <pre><code>import java.awt.*;
  import javax.swing.*;  
  import java.awt.event.*;
  import java.awt.image.*; 
  import java.util.*;
  </code></pre>
  
  <p>Here is what I'm trying to make a thread</p>
  
  <pre><code>&gt;public class test extends JPanel implements Runnable
  &gt;{
  &gt;...&lt;snip&gt;...
   &gt; Random generator = new Random();
  &gt;...&lt;snip&gt;...
  &gt;    try
  &gt;    {
  &gt;      Thread.sleep(100);
  &gt;    }catch(Exception e)
  &gt;    {
  &gt;      e.printStackTrace();
  &gt;    }
  &gt;  public static void main(String args[])
  &gt;  {
  &gt;...&lt;snip&gt;...
  &gt;  }
  &gt;}
  </code></pre>
  
  <p>And I'm using this to create thread</p>
  
  <pre><code>Thread test1 = new Thread(new test("one"));
  </code></pre>