Current Position:Home > TableView horizontal and vertical scrolling is horribly slow

TableView horizontal and vertical scrolling is horribly slow

Update:10-11Source: network consolidation
Advertisement
How can I adjust the horizontal and vertical scrolling amount?
I used the Ensemble example prorgam and streched the column so that the horizontal scroll bar is displayed. I then used the right scroll button which then scrolls extremly slow. I've looked at the javadoc on the tableview and I cannot determine how to set the scrolling amount. I can check if the table is scrolling but I would like to set the amount to be a column width at a time when using the left or right arrow.

The Best Answer

Advertisement
It probably needs to be actually rendered to the Scene graph before the lookups can be made, so the lookups won't work in the initialize method.
There are a number of reasons I don't like this solution
- I don't like the string binding
- the fact that there are scrollbars that are descendant nodes of the table view is not documented, so (at least in theory) a future release of JavaFX could choose not to use the ScrollBar class (for example by creating its own scrolling implementation). This would break the code you have.
- if you decided to create (or use) an alternative skin for the table view which had other scrollbars in place (again, unlikely but theoretically possible), you'd end up setting the unit and block increments of those scrollbars too. In other words, there's no guarantee these are the actual scrollbars you want.
So, not ideal but at least if it works you have something...
  • TableView horizontal and vertical scrolling is horribly slow Update:10-11

    How can I adjust the horizontal and vertical scrolling amount? I used the Ensemble example prorgam and streched the column so that the horizontal scroll bar is displayed. I then used the right scroll button which then scrolls extremly slow. I've look

  • I need to turn the horizontal and vertical scroll bars off when in full screen mode is this possible Update:11-30

    I am using a touchscreen monitor and am running the website at 1280 x 1024, however there are scroll bars and I dont want them and I dont want to alter the HTMLTry this code in the file [http://kb.mozillazine.org/userContent.css userContent.css] <pre

  • The Horizontal & vertical scroll is not visible or not working when i run the form in Forms 6i. Update:10-11

    Hi all, The Horizontal & vertical scroll is not visible or not working when i run the form. In this form , there are 5 canvas namely CANVAS2 - Stacked Canvas PASS - Content Canvas MAT_RATES - Content Canvas DATE - Content Canvas PREVIOUS - Content Ca

  • Need help with scroll effects for horizontally + vertically scrolling website Update:10-11

    Hi, I recently came across a website that uses both horizontal and vertical scrolling where 1 scroll = full browser length move to the next section (as opposed to several rotations in a continuous motion of the mouse ball like the majority of website

  • Horizontal/Vertical Scroll in Design Studio 1.1 Update:10-11

    Hi, We are using Design Studio 1.1 SP1, I am using cross tab in the design studio to create a desktop application, I selected more number of columns in the cross tab, But in the cross tab i dont see horizontol/Vertical scroll bar in the layout.Please

  • Remove vertical scroll bar from table control Update:10-11

    hi, i had used table control in my application. i want remove vertical scroll bar from table control. At initial time in table control there is no vertical scroll bar. In my table control lines are dependent on internal table which i was used to fill

  • Vertical Scroll Bar on the device display Update:10-11

    Hello, I had the problem with both horizontal and vertical scroll bars. Managed to get rid of the horizontal scroll bas using the parameters ~itsmobileelemfactor and ~itsmobileelemunits but the vertical scroll bar is still there. As our transactions

  • Horizontal scrolling faster than Vertical scrolling Update:10-11

    I have a jscrollpane, containing a jtable as its component view. When i drag the vertical scroll bar, the painting is slower than when i drag the horizontal scrollbar. I've tried using a profiler to understand, but i didn't. Can anybody help me ?Hori