### Collapse or expand TitledPane

To change the title of a TitledPane, use a JavaObject.
More to find here:
http://docs.oracle.com/javafx/2/api/javafx/scene/control/TitledPane.html
Example
' Set titledPane to expanded or collapsed
' Parameter Titledane: The pane to give the focus to and expand to show the content
' Parameter Expanded
`Sub setTitledPaneExpanded(TitledPane As Node, bExpanded As Boolean)
Dim jo As JavaObject = TitledPane
jo.RunMethod("setExpanded", Array As Object(bExpanded))
End Sub`
Usage:
Private TitledPane1 As Node
' Expand TitledPane1
setTitledPaneExpanded(titledpane1, True)
' Collapse TitledPane1
setTitledPaneExpanded(titledpane1, False)
Private TitledPane1 As Node
Private TitledPane2 As Node
' Collapse TitledPane1 and expand TitledPane2
setTitledPaneExpanded(titledpane1, False)
setTitledPaneExpanded(titledpane2, True)

Changed: , Category: TitledPane, File: T6C269M2002.htm, ID: 2002