B4J Question can Scroll enable

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no proper way to do it.

This code will hide the scrolls:
B4X:
Dim jo As JavaObject = TreeTableView1
Dim scrolls() As Object = jo.RunMethodJO("lookupAll", Array(".scroll-bar")).RunMethod("toArray", Null)
For Each scroll As Node In scrolls
   scroll.Visible = False
   scroll.Alpha = 0
Next
However it is not perfect and the table is still scrollable.

You can probably improve it with a custom CSS file.
(https://bugs.openjdk.java.net/brows...uetabpanels:comment-tabpanel#comment-13725534)
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User
There is no proper way to do it.

This code will hide the scrolls:
B4X:
Dim jo As JavaObject = TreeTableView1
Dim scrolls() As Object = jo.RunMethodJO("lookupAll", Array(".scroll-bar")).RunMethod("toArray", Null)
For Each scroll As Node In scrolls
   scroll.Visible = False
   scroll.Alpha = 0
Next
However it is not perfect and the table is still scrollable.

You can probably improve it with a custom CSS file.
(https://bugs.openjdk.java.net/browse/JDK-8090721?focusedCommentId=13725534&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13725534)
great ; Thanks @Erel
 
Upvote 0
Top