Sub SetGraphic(SegmentedButton As SegmentedButton, Index As Int, Node As Node)
Dim ToggleButton As JavaObject = SegmentedButton
ToggleButton = ToggleButton.RunMethodJO("getButtons", Null).RunMethod("get", Array(Index))
ToggleButton.RunMethod("setGraphic", Array(Node))
End Sub