title: Java FX out of the window screen
body: <p>I wanna it will be okay when the number variables is changed, but when the are increased the button goes out from the window. How to fix it? Also how to put the bar down to the level of "10$", so they will be in the same row?</p>
  
  <p>Before :
  <a href="https://i.stack.imgur.com/WBG9N.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WBG9N.jpg" alt="Before"></a></p>
  
  <p>After :
  <a href="https://i.stack.imgur.com/c53Ob.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c53Ob.jpg" alt="After"></a></p>
  
  <p>Here is my code :</p>
  
  <pre><code>VBox vboxBottom = new VBox();
  HBox hboxBottomElements = new HBox(15);
  HBox hboxBottomMain = new HBox(0);
  
  Region region = new Region();
  region.setPrefWidth(500);
  
  hboxBottomElements.getChildren().addAll(visaLabel, separator2, adLabel, separator3, governRelationStatus, separator4, region, next);
  hboxBottomElements.setPadding(new Insets(5));
  
  vboxBottom.getChildren().addAll(separator1, new Group(hboxBottomElements));
  
  vboxBottom.setPadding(new Insets(3));
  
  hboxBottomMain.getChildren().addAll(new Group(moneyBox), vboxBottom);
  hboxBottomMain.setPadding(new Insets(3));
  layout.setBottom(hboxBottomMain);
  </code></pre>