title: JScrollPane Not Updating Correctly
body: <p>My JScrollPane isn't updating correctly.</p>
  
  <pre><code>    public static JScrollPane scrollPane;
  public static List&lt;String&gt; usernames = new ArrayList&lt;String&gt;();
  public static JList list;
  
      public static void getUsername() {
      usernames.add(Frame.username);
      list = new JList(usernames.toArray());
      scrollPane = new JScrollPane(list);
  
      // Update
      scrollPane.revalidate();
      list.revalidate();
      panel.revalidate();
  
      frame.repaint();
      System.out.println("user connected");
  }
  </code></pre>
  
  <p>I've tried repaint(), revalidate(), and validate() on the scrollpane, the jlist, the panel, and the frame and the scroll pane won't update.  It updates fine if I add a new scrollpane with the new data in the array.</p>
  
  <pre><code>        server.addListener(new Listener() {
          public void received(Connection connection, Object object) {
              new Run();
              players++;
              playerLabel.setText("Players currently online: " + players);
              getUsername();
          }
      });
  </code></pre>