### TitledPane set & get Title

B4J v5.00
There is an Accordion Container. See B4J HowTo Category Accordion.
B4J earlier versions
Set and get the title in a titledpane using JavaObject.
Reference: http://docs.oracle.com/javafx/2/api/javafx/scene/control/TitledPane.html
The titledpane as defined as nodes.
'Set the title in a titledpane
'Parameter: Titledpane as node
'Parameter: Title
`Sub setTitledPaneText(TP As Node, Title As String )
Dim jo As JavaObject = TP
Try
jo.RunMethod("setText", Array(Title))
Catch
Log("Error SetTitledPaneText:" & LastException.Message)
End Try
End Sub`
'Get the title from a titledpane
'Parameter: Titlepane as node
'Return the titledpane Title
`Sub GetTitledPaneText(TP As Node) As String
Dim result As String = ""
Try
Dim jo As JavaObject = TP
result = jo.RunMethod("getText", Null)
Catch
Log("Error GetTitledPaneText:" & LastException.Message)
End Try
Return result
End Sub`

Changed: , Category: Panes, File: T6C230M1696.htm, ID: 1696