Z-Order in JavaFX

Scaraffe picture Scaraffe · Jun 7, 2010 · Viewed 23.5k times · Source

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

Answer

PhiLho picture PhiLho · Jun 7, 2010

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.