title: Trouble with Java's Vector's and JTable
body: <p>I'm tinkering with JTables and Vectors for the first time in Java, and I've hit an interesting snag. My code compiles correctly, but when I go to run it, I get the following exception:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.ClassCastException:
    java.lang.String cannot be cast to java.util.Vector</p>
  </blockquote>
  
  <p>I don't see anywhere where I'm casting, so I'm a bit confused.</p>
  
  <pre><code>Vector&lt;String&gt; columnNames = new Vector&lt;String&gt;();
  columnNames.add("Tasks");
  
  Vector&lt;String&gt; testing = new Vector&lt;String&gt;();
  testing.add("one");
  testing.add("two");
  testing.add("three");
  
  table = new JTable(testing, columnNames); // Line where the error occurrs.
  scrollingArea = new JScrollPane(table);
  </code></pre>
  
  <p>My goal is to have a table of JPanels, but I have the same type of error when I try to use a Vector of &lt; taskPanel > Here's the class that extends JPanel:</p>
  
  <pre><code>class taskPanel extends JPanel
  {
      JLabel repeat, command, timeout, useGD;
  
      public taskPanel()
      {
          repeat = new JLabel("Repeat:");
          command = new JLabel("Command:");
          timeout = new JLabel("Timeout:");
          useGD = new JLabel("Update Google Docs:");
  
          add(repeat);
          add(command);
          add(timeout);
          add(useGD);
      }
  }
  </code></pre>