Guest User

Untitled

a guest
Feb 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. public class RightMenu extends GridPane {
  2.  
  3. public RightMenu() {
  4.  
  5. Button startButton = new Button("Старт");
  6. Button stopButton = new Button("Стоп");
  7. Button clearButton = new Button("Очистить график");
  8.  
  9. this.add(startButton, 0, 0);
  10. this.add(stopButton, 1, 0);
  11. this.add(clearButton, 0, 1);
  12.  
  13. this.setPadding(new Insets(2, 2, 2, 2));
  14. }
  15.  
  16. GridPane.setColumnSpan(clearButton,2);
  17.  
  18. GridPane.setHalignment(clearButton, HPos.CENTER);
  19.  
  20. VBox vbox = new VBox();
  21. HBox hbox = new HBox();
  22.  
  23. hbox.getChildren().addAll(startButton, stopButton);
  24.  
  25. vbox.getChildren().addAll(hbox, clearButton);
Add Comment
Please, Sign In to add comment