<HBox spacing="20" alignment="CENTER_LEFT">
<!---关键在这里---->
<HBox HBox.hgrow="ALWAYS">
</HBox>
<JFXButton prefWidth="100" fx:id="dialogCommitButton" prefHeight="40" textAlignment="RIGHT" lineSpacing="80" minHeight="40" buttonType="RAISED" text="完成"
style="-fx-text-fill:WHITE;-fx-background-color:#5264AE;-fx-font-size:14px;-fx-float:right;"/>
<JFXButton prefWidth="100" fx:id="dialogCancelButton" prefHeight="40" textAlignment="RIGHT" lineSpacing="80" minHeight="40" buttonType="RAISED" text="取消"
style="-fx-text-fill:WHITE;-fx-background-color:#5264AE;-fx-font-size:14px;-fx-float:right;"/>
</HBox>

最后
以上就是积极便当最近收集整理的关于javafx HBOX按钮右对齐的全部内容,更多相关javafx内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复