title: JList not updating with custom ListModel
body: <p>I have a TestListModel which extends AbstractListModel </p>
  
  <pre><code>public class TestListModel extends AbstractListModel {
  List&lt;Test&gt; testlist = new ArrayList&lt;Test&gt;();
  
  public Object getElementAt(int arg0) {
      return testlist.get(arg0);
  }
  
  public int getSize() {
      return testlist.size();
  }
  public void add(Test t) {
      System.out.println("adding");
      testlist.add(t);
      System.out.println(testlist.toString());
  }
  public void remove(Test t) {
      testlist.remove(t);
  }
  
  }
  </code></pre>
  
  <p>I have a JList like so</p>
  
  <pre><code>final TestListModel listModel = new TestListModel();
      listModel.add(new Test("test", "scen"));
      JPanel panel = new JPanel();
      final JList list = new JList(listModel);
      panel.add(list);
      list.setVisibleRowCount(3);
      list.setFont(new Font("Tahoma", Font.PLAIN, 14));
      list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      list.setBounds(0, 0, 100, 400);
  </code></pre>
  
  <p>I also have an Add Button that has an actionlister </p>
  
  <pre><code>public void actionPerformed(ActionEvent arg0) {
  final JFileChooser fc = new JFileChooser();fc.setCurrentDirectory(new 
  fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
  int returnVal = fc.showOpenDialog(frmAtt);
  if(returnVal == JFileChooser.APPROVE_OPTION) {
      listModel.add(getTest(fc.getSelectedFile().toString()));
  }
  }
  </code></pre>
  
  <p>The ArrayList appears to be updating when I add another test through the button but the GUI does not reflect this change. JList appears completely blank. It should be showing all the tests in the model. </p>
  
  <p>Only the first test "scen" shows up in the JList which I added manually to the list (can see in the code above). </p>