JavaFX HBox Alignment

前端 未结 2 2161
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 19:09

I\'ve been working on a software using JavaFX and I have a stupid but worrying problem.

In certain part of the code I have a HBox, and, inside of it three

2条回答
  •  没有蜡笔的小新
    2021-02-18 19:27

    I think that the best option could be switching from HBox to BorderPane. It let You make items sticked to any edge of Your window.
    Another option is GridPane. You can select column and change its 'Halignment' property to 'RIGHT'.

    And, by the way, I recommend using JavaFX Scene Builder while having fun with JavaFX.

提交回复
热议问题