title: How do I force JScrollPane to only scroll vertical?
body: <p>Guys, I need to put some buttons in a jscrollpanel, but the JScrollPane won't create a scroll vertically. I'm using a JPanel inside the JScrollPane which is using the simple FlowLayout layout. How can I make the JScrollPanel to scroll only in the vertical??</p>
  
  <p>Problem:</p>
  
  <p><img src="https://i.stack.imgur.com/pAEqi.png" alt="enter image description here"></p>
  
  <p>Desired Solution:
  <img src="https://i.stack.imgur.com/kdsQN.png" alt="enter image description here"></p>