title: Restoring JSplitPane splitter to "default" location
body: <p>I have a <code>JSplitPane</code> that has a <code>JTable</code> on the top part and a panel with labels and <code>JTextFields</code> on the bottom part. The splitter is set before adding using this function:</p>
  
  <pre><code>splitPane.setResizeWeight(1.0);
  </code></pre>
  
  <p>Now, I have a button that "hides" the bottom panel with this code:</p>
  
  <pre><code>splitPane.setDividerLocation(splitPane.getHeight());
  splitPane.setEnabled(false);
  </code></pre>
  
  <p>Basically you can see the splitter at the bottom (which is what I want) but you can't do anything with it. Now, how do I get it back to the default position (the one giving the bottom panel the room it needs)?</p>
  
  <p>I know I could use this by memorizing the relative position of the splitter before I push the button, but is there any function that will "refresh" my splitter to the location it needs to be to fulfill the condition of the <code>setResizeWeight(1.0)</code> function?</p>