2 Replies Latest reply: Apr 9, 2013 8:22 PM by shakir.gusaroff RSS

    limiting the amount of visible rows in a JavaFX ListView control

    se*328623*78
      Is there a way to specify the preferred height of a JavaFX List view in terms of number of rows and not in term of pixels ?
      I am currently writing something like:

      myList.setPrefHeight(100);

      to limit the amount of scrollable items to 4 rows. But it is a bit of guessing, I would like to specify that I need to see maximum 4 rows, not the approximate amount of pixels that these 4 rows may use.

      Thanks in advance.