title: Shrink JScroll Pane to same Height as JTable
body: <p>I currently have JTables nested in JScrollPanes like so:</p>
  
  <p><img src="https://i.stack.imgur.com/hZQGW.png" alt="enter image description here"></p>
  
  <p>My problem is that the number of rows in each table is variable when the table is created. What I want to do is make the JScrollpane smaller if the table is too short, but I want to keep it at a set size if the table is too long.</p>
  
  <p>How can I accomplish this?</p>