I want to add a Hyperlink to my JavaFX 2 application. This link is ment to be vertically at the very left or right side of my app, just like you see it with minimized and docked modules in many applications – for example IntelliJ IDEA.
It turns out that placing the node is hard even in SceneBuilder, as the container wether grows or changes the coordinates of the Hyperlink when i want to rotate it.
So my question is: How can i place one or more nodes that are rotated by wether 90 or 270 degrees within a container (preferrably VBox or AnchorPane) that’s fix-sized?
Place the rotated node in a Group – that way the layoutBounds of the Group will match the boundsInParent of the rotated
Node. This is likely what you want because it means that the visual bounds of node are now used for layout purposes. This works for layout managers which automatically relocate nodes (such asVBox).