### Divider Color

Example changing the divider color to red.
Important: this must be done after the mainform is shown.
Private splitMain As SplitPane
Private joSplitPaneDivider As JavaObject = splitMain
'Option 1 using JavaObjects
joSplitPaneDivider.RunMethodJO("lookup", Array(".split-pane-divider")).RunMethod("setStyle", Array("-fx-background-color: RED;"))
'Option 2 using JavaObject and CSSUtils library
Dim joSplitPaneDivider As JavaObject = joSplitPane.RunMethod("lookup", Array(".split-pane-divider"))
If Not(joSplitPaneDivider=Null) Then
CSSUtils.SetStyleProperty(joSplitPaneDivider, "-fx-background-color", CSSUtils.ColorToHex(fx.Colors.Red))
End If

Changed: 2018-04-01 11:37, Category: SplitPane, File: T6C253M2155.htm, ID: 2155