How to right align a button in Java FX toolbar

前端 未结 3 718
臣服心动
臣服心动 2020-12-01 07:09

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

3条回答
  •  难免孤独
    2020-12-01 07:58

    If you could place ur button inside a stack pane then u could make use of Stackpane's alignment property that takes javafx.geometry.Pos - The alignment of the child within the stackpane.For example in ur case:

    
    

提交回复
热议问题