title: Arraylist of arraylists in JTable
body: <p>I have a class called Database with an arrayList called applicants. Each record in the arrayList applicants is an arrayList of applicant details. (So Database class contains an arrayList of arrayLists).</p>
  
  <p>I also have a class called GUI which contains a JTable:</p>
  
  <pre><code>String[] columnNames = {"Application number",
                                  "Program",
                                  "Name",
                                  "Date",
                                  "Accepted?"};
  
  Object[][] data = {Database.applicants};
  </code></pre>
  
  <p>Whenever i compile it says: "Non static variable applicants cannot be referenced from a static context"</p>
  
  <p>Any pointers on what i may need to do would be really appreciated.</p>
  
  <p>Thanks in advance.</p>