Keep 'Next' button and 'Cancel' button on the same line

This commit is contained in:
yushijinhun 2018-10-20 21:33:09 +08:00
parent f8a838506d
commit c006068580
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
2 changed files with 12 additions and 8 deletions

View File

@ -67,10 +67,12 @@
</body>
<actions>
<Label fx:id="lblCreationWarning"/>
<HBox>
<SpinnerPane fx:id="acceptPane" styleClass="small-spinner-pane">
<JFXButton fx:id="btnAccept" onMouseClicked="#onCreationAccept" text="%button.ok" styleClass="dialog-accept"/>
</SpinnerPane>
<JFXButton onMouseClicked="#onCreationCancel" text="%button.cancel" styleClass="dialog-cancel"/>
</HBox>
</actions>
</JFXDialogLayout>
</fx:root>

View File

@ -19,10 +19,12 @@
</body>
<actions>
<Label fx:id="lblCreationWarning" />
<HBox>
<JFXButton onMouseClicked="#onAddCancel" text="%button.cancel" styleClass="dialog-cancel" />
<SpinnerPane fx:id="nextPane" styleClass="small-spinner-pane">
<JFXButton fx:id="btnAddNext" onMouseClicked="#onAddNext" text="%wizard.next" styleClass="dialog-accept" />
</SpinnerPane>
</HBox>
</actions>
</JFXDialogLayout>