I have a class that describes the right panel of my GUI application with buttons :
public class RightMenu extends GridPane { public RightMenu() { Button startButton = new Button("Старт"); Button stopButton = new Button("Стоп"); Button clearButton = new Button("Очистить график"); this.add(startButton, 0, 0); this.add(stopButton, 1, 0); this.add(clearButton, 0, 1); this.setPadding(new Insets(2, 2, 2, 2)); } }
As you can see the buttons are very crooked. How can I make the "Clear graph" button under both the "Start" and "Stop" buttons, that is, occupy two columns? And how do you correctly align the buttons?
