title: How to create a scrollable panel of components in JavaFX?
body: <p>So, basically, I'm trying to achieve this a scrollable set of components with spacing etc. and the ability to add more components.
  The list of components are custom anchorpane components.</p>
  
  <p>Here's an example that I got working:
  <img src="https://i.stack.imgur.com/T9RwZ.png" alt="enter image description here"></p>
  
  <p>The problem is that that uses a gridpane inside of a scrollpane and for some reason the gridpane does not fill the width of the scrollpane at all. So, if I resize, everything stays where it is instead of stretching inside the gridpane columns. Also, if I were to stick to a gridpane (over a tilepane which seems to work better except when the components float next to each other despite the orientation being vertical and prefcolumns being 1), how would I add more rows? The idea of this is to list github repos in  a nice, UX pleasing, fashion.</p>
  
  <p>Thanks for any insight.
  Also: those repos aren't mine - I have none and a guy on a website made that (it's not well made so don't compare me to him lol).</p>