title: JScrollpane not scrolling when collapsible panels are added
body: <p>I have added some collapsible panels to my JScrollpane. When they are extended, the JScrollpane is not allowing me to scroll. Below is the code I'm using.</p>
  
  <pre><code> JScrollPane scrollPane = new JScrollPane(makeContentForPropertiesWindow());
      propertiesTabDoc.add(scrollPane,BorderLayout.CENTER);
      scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
      scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
  </code></pre>
  
  <p>The makeContentForPropertiesWindow method populates the collapsible panels. I've used GridLAyout there. I've also tried FlowLayout and BorderLAyout as well. All result in the same output. Currently below is how it looks.</p>
  
  <p><a href="https://i.stack.imgur.com/YAzkn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YAzkn.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong here? Why is it not allowing me to scroll though the vertical area is full? Please advice.</p>