Skip to content
Advertisement

How to right align a button in Java FX toolbar

I am building a UI using Java FX scene builder and I want a button in a toolbar to float towards the right side of the toolbar. I have tried changing the node orientation of the parent(toolbar) and also the button but both seem to be ignored.

Advertisement

Answer

Add a pane with no content which always grows to fit available space between the left aligned tools in the bar and right aligned ones.

tool

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement