B4J Question tableview and scrollbar dimension

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
in the tableview the scrollbar are too small (width in vertical scroolbar and height in orrizontal scroolbar), there is a way to increase the dimension?
Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
SS-2016-05-19_17.24.21.png


Based on this answer: http://stackoverflow.com/questions/21044375/hijavafx-tableview-scrollbar-thickness-by-css
 

Attachments

  • TableView.zip
    1.9 KB · Views: 444
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Thanks Erel
I used the same file but not work.
In AppStart i load the css file and the Tableview is loaded later when i loads the appropriate layout.
The strange thing is that also without css file, in the default mode, the scrollbar is really very small.
where am I wrong?
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
In your example Erel if fill TableView with:
B4X:
For i = 1 To 500
    TableView1.Items.Add(Array(i, i, i, i, i, i, i, i, i, i, i, i ))
Next
The dimension of the scrollbar are those described by table.css

while if i fill the TableView with:
B4X:
pool.Initialize("con.mysql.jdbc.Driver", "jdbc:mysql://localhost:3307/GesProd", "xxxx", "xxxx")
Dim sql    As SQL = pool.GetConnection
DBUtils.ExecuteTableView(sql, "SELECT * FROM Products", Null, 0, TableView1)

table.css not work, the dimension of the scroolbar are very small, pratically thi's my problem.
 
Last edited:
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Removing this line:
B4X:
#VirtualMachineArgs: -Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.touch=true
Tableview work correctly.
 
Upvote 0
Top