title: JTable is not showing result after update?
body: <p>I am creating a table at run time after fetching the result from the database. The flow of my application is like this.  </p>
  
  <ol>
  <li>Initializing a empty JScrollPane(); <code>JScrollPane tableScroll = new JScrollPane();</code></li>
  <li>Fetching result from the database;</li>
  <li>Updating result to JTable and adding JTable to JScrollPane using following method:</li>
  </ol>
  
  <p>Code:</p>
  
  <pre><code>private void setResultTable(Vector documents, Vector header) {
     TableModel model = new DefaultTableModel(documents, header);
     documentTable.setModel(model);
     tableScroll.add(documentTable);
     tableScroll.repaint();
  }
  </code></pre>
  
  <p>my problem is that after calling setResultTable the result are not appearing in the table. Please help me with that. Thanks in advance !!!</p>