To add Tabs to the TabPane, three options are outlined.
#Using the JavaFX Scene Builder
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.
#Editing the Layout File
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.
#Via B4J code
'TabPane class reference:
https://docs.oracle.com/javafx/2/api/javafx/scene/control/TabPane.html
Sub Process_Globals
..
Private tpMain As TabPane
End Sub
'Add a new tab = TabPage to the TabPane
Sub btnTabAdd_Action
Dim tabpageNew As TabPage
tabpageNew.Initialize
tabpageNew.Id = "tabpage" & (tpMain.Tabs.Size + 1)
tabpageNew.Text = "Tab " & (tpMain.Tabs.Size + 1)
tpMain.Tabs.Add(tabpageNew)
End Sub