title: How to make JScrollPane fit to my jTable?
body: <p>I have a problem with JScrollPane when it is used with JTable. How can I make it such that the the scrollPane doesn't have a blank space below the JTable as can be seen in the picture</p>
  <p><a href="https://i.stack.imgur.com/E2jlJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E2jlJ.jpg" alt="" /></a></p>
  
  <p>Also,I am currently using a JTabPane that contains 2 JPanels, one for the JScrollPane and one for the JList at the bottom. Is this the right way to do things?</p>