Z-Order in JavaFX

前端 未结 3 448
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 16:45

How do I set Z-order for VBox in JavaFX?

3条回答
  •  失恋的感觉
    2020-12-06 17:10

    Z-order in JavaFX is actually the order in the scenegraph, eg. in the content sequence of the scene (then in the contents of the groups, containers, etc.).

    All nodes have also toFront() and toBack() functions to help changing this order. For finer control, you have to remove nodes from one place and insert it higher or lower in the sequence.

提交回复
热议问题