2 Replies Latest reply on Apr 10, 2013 1:22 AM by shakir.gusaroff

    limiting the amount of visible rows in a JavaFX ListView control

      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:


      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.