[img]https:// i.sstatic.net/WieWLxBw.jpg[/img]
Вот что я написал для этого:
Код: Выделить всё
topNodes.getChildren().add(answer);
topNodes.getChildren().add(btShuffle);
topNodes.setAlignment(Pos.CENTER);
answer.setTextAlignment(TextAlignment.LEFT);
btShuffle.setAlignment(Pos.TOP_RIGHT);
- topNodes в VBox
- the VBox в StackPane
- StackPane в сцену
Подробнее здесь: https://stackoverflow.com/questions/790 ... -and-right
Мобильная версия