### Disable the vertical scrollbar

To disable the vertical scrollbar, make use of the TextArea Class API Method "lookup" (requires the JavaObject library).
Reference: http://docs.oracle.com/javafx/2/api/javafx/scene/Control/TextArea.html
Example Sub
' Disable the vertical scrollbar
`Sub DisableVScrollBar(ta As TextArea)
Dim jo As JavaObject = ta
Dim scrollbar As JavaObject = jo.RunMethod("lookup", Array(".scroll-bar:vertical"))
Dim d As Double = 0
scrollbar.RunMethod("setOpacity", Array(d))
End Sub`
Private taTest As TextArea
' Click on a button to disable the vertical scrollbar
`Sub buttonTest_Action
taTest.WrapText = True
CallSubDelayed2(Me, "DisableVScrollBar", taTest)
End Sub`

Changed: , Category: TextArea, File: T6C261M1923.htm, ID: 1923