title: How to dynamically add new Labels below eachother in Javafx
body: <p>I'm trying to make a leaderboard in my Javafx application. To achieve this, I want to dynamically add Labels containing the name of the player below eachother. I first used a gridpane like this:</p>
  
  <pre><code>Gridpane pane
  for(int i = 0; i &lt; users.size(); i++)
  {
       Label l = new Label();
       l.setText(users.get(i).getName());
       pane.add(l, 2, 1);
  }
  </code></pre>
  
  <p>(I can't show the whole code, because it is a school project and I'm not allowed to).</p>
  
  <p>But, when I do this, all the names will appear on exactly the same position. Then, I tried to manually change their y locations, but apparently, this changes nothing.</p>
  
  <p>So, what is another good way to dynamically place elements below eachother?</p>