title: No Scrollbar - JScrollPane with JPanel
body: <p>I have a JSplitPane with </p>
  
  <pre><code>JSplitPane jSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, movieSearchResultTableScrollPane, movieSearchInfoScrollPane);
  </code></pre>
  
  <p>I have set:</p>
  
  <pre><code>jSplitPane.setOneTouchExpandable(true);
  </code></pre>
  
  <p>The <code>movieSearchResultTableScrollPane</code> has a JTable and if drag the splitpane to the left, a horizontal scrollbar is going to visible after some length.</p>
  
  <p>The <code>movieSearchInfoScrollPane</code> has a JPanel <code>movieSearchInfoPanel</code> attached as:</p>
  
  <pre><code>movieSearchInfoScrollPane.setViewportView(movieSearchInfoPanel);
  </code></pre>
  
  <p><code>movieSearchInfoPanel</code> has some label components. And I didn't specify any kind of size to the <code>movieSearchInfoPanel</code>. But If I drag the splitpane to the right I am not getting horizontal scrollbar <code>movieSearchInfoScrollPane</code>. </p>
  
  <p>How can I resolve this problem? </p>