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
2 changed files with 12 additions and 8 deletions

View File

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

View File

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