B4J Question Adding Tabs via Scene Builder

melliott

Member
Licensed User
Longtime User
Hello,

I am using B4J. For a TabPane in Scene Builder where is the property to set the number of tabs?

It defaults to 2 (two) tabs. I'd like to add more without using code in this instance.


Thanks,

Michael
 

rwblinn

Well-Known Member
Licensed User
Longtime User
To add Tabs without programming using the JavaFX Scene Builder:
After the TabPane has been added, select a Tab in the Hierachy, then right mouseclick, select duplicate from the popupmenu. A new Tab is added.

Alternatively, open the layout fxml file (from the files folder) in a texteditor, copy & paste a tab section, like <Tab text="Tab 1"> ... </Tab> and make further changes required.
 
Upvote 0
Top