title: How to reset a JTable
body: <p>I have a question with respect to <code>JScrollPane</code> and a <code>JTable</code>.</p>
  
  <p>I have added a <code>JTable</code> to a <code>JScrollPane</code>, and added the <code>JScrollPane</code> to the <code>JPanel</code>. When I click on 'show' button, the <code>JTable</code> will be filled with contents from the database.</p>
  
  <p>I also have another button <code>reset</code>, clicking on which will remove the contents of the <code>JTable</code>, and the <code>JScrollPane</code>. It is supposed to be doing that, but what happens is that, even after clicking the button, all the contents of the <code>JTable</code> and the <code>JScrollPane</code> still exists.</p>
  
  <p>I used <code>revalidate()</code>, <code>reinstantiate()</code>, etc, but of no use. How do I make it work?</p>