I am new to Scene Builder and it's functions so expect a lot of questions in the coming days regarding it. I am self teaching myself programming of Java and SQL so my only teachers are you guys.
At the moment I am stuck understanding the difference between AnchorPane
and Pane
in Scene Builder and when should I use AnchorPane
and when should I use Pane
.
Thanks in advance.
Check this link on quora about the differences between AnchorPane
and Pane
.
As stated there, AnchorPane
is more flexible and the children of AnchorPane
can be dynamically resized as it allows the edges of the children nodes to be "anchored" to the edges of the AnchorPane
. In other words, the child element will 'hold onto' the sides of the AnchorPane
. Pane
on the other hand is used when dynamic resizing of the window is not needed.
Be sure to check out this official documentation for Pane and AnchorPane
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.