//for creating space between elements in VBox //first import the VBox and  create a VBox object // To import  import javafx.scene.layout.*; // create the object VBox vbox = new VBox(); // change the value as you want  vbox.setSpacing(10); 

Read more of this post