Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Scrolling issue in ListView

Gayan_PereraApr 19 2014 — edited Apr 29 2014

Hi All,

I'm developing a application which has a listview which contains items which needs complex cell layouts. The cells are in variable heights and some of the cells tends to be larger than the view port height. But when the listview is filled with items the scroll thumb tends to resize its self while scrolling, which makes its hard to hold onto the thumb while scrolling. This happens mainly when passing through different size of cells. This is not a problem in swing if i create a same kind of a cell render to be used with the JList. This problem is there in JavaFX 2 and JavaFX8 both.

When looking at the VirtualFlow which is responsible for layouting the listview and handle scrolling, it seems that the scrollbar thumb side (lenghtbar) is calculated base on the cell count and the visible cell count. which is actually a problem when it comes to lists which has variable heights of cells. So is this the future of the scroll bar behavior for javafx list views ? or is there any solution available for this problem ? Or should i try to hide the scrollbar and provide a different user interaction to scroll ?

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2014
Added on Apr 19 2014
3 comments
2,241 views