This content has been marked as final. Show 1 reply
You almost certainly don't want to do it like this. The type of the ListView, BorderPane in your example, is the type of the data to be displayed in each cell. It's not the type of the node that is used to display each cell. It is almost always a mistake to use a graphical node as the data type for a control.
To change the display type for each cell in the ListView, use the setCellFactory(...) method and pass in a Callback that creates a custom ListCell in its call method. The ListCell will use the BorderPane as its graphic. You can then set the height of the BorderPane as needed.
Example 12.4 in http://docs.oracle.com/javafx/2/ui_controls/list-view.htm is an example of using a custom list cell.