B4X:
Sub MakeTabsFillWidthOfTabPane(TabPaneToChange As TabPane)
Dim JOTabPane As JavaObject = TabPaneToChange
JOTabPane.RunMethodJO("tabMinWidthProperty",Null).RunMethod("bind",Array(JOTabPane.RunMethodJO("widthProperty",Null).RunMethodJO("divide",Array(JOTabPane.RunMethodJO("getTabs",Null).RunMethod("size",Null))).RunMethod("subtract",Array(30))))
End Sub