F
F
Febel2018-10-31 16:41:55
Java
Febel, 2018-10-31 16:41:55

How to add separator in fxml javafx?

I want to add separator between two buttons , but I don't know how to do it in fxml file.

<ToolBar>
          <items>
                    <Button text="Show all" onAction="#showAllButtonClicked" />
                    <Button text="Show last 10" onAction="#showLastTenButtonClicked"/>
          </items>
 </ToolBar>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-11-01
@Febel

If simple, then

<ToolBar>
          <items>
                    <Button text="Show all" onAction="#showAllButtonClicked" />
                    <Separator />
                    <Button text="Show last 10" onAction="#showLastTenButtonClicked"/>
          </items>
 </ToolBar>

I advise you to master SceneBuilder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question