JavaFX: How to position a component/node?

后端 未结 3 1793
一个人的身影
一个人的身影 2021-01-13 06:29

In JavaFX, is there something similar to setLayout(); or setBounds();?

For example, I want to position a button to a position that I desir

3条回答
  •  渐次进展
    2021-01-13 06:43

    You should read up on the Node class (the long text at the beginning), and then especially relocate, setLayoutX (and Y) and setTranslateX (and Y).

提交回复
热议问题