2

I need a custom implementation of scroll up/down of a ListView, for this I want to use

listView.fireEvent(new ScrollEvent(...))

The problem is that the constructor of the scrollEvent is to complex (http://goo.gl/Dl0cxy), I just need to move x pixeles up or down. How could I use an easy implementation just like

listView.fireEvent(new CustomScrollEvent(x,y))

where x,y are the pixeles I need to move from the current scroll position ? I really dont know all the info asked in the ScrollEvent constructor.

BlackBishop
  • 737
  • 1
  • 7
  • 18
  • 1
    check this out http://stackoverflow.com/questions/26537548/javafx-listview-with-touch-events-for-scrolling-up-and-down – jmhostalet Nov 03 '14 at 22:00

1 Answers1

0

You can use Flowless instead of ListView. There, you can use the methods scrollX(dx) and scrollY(dy) to scroll the content.

Tomas Mikula
  • 6,537
  • 25
  • 39