import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.control.ListView;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.stage.Stage;

public class TestListView extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{

        int[] sizes = {5, 50, 150, 250, 500, 10000};
        ListView[] lv = new ListView[sizes.length];
        HBox hBox = new HBox(20);
        for (int i = 0; i < sizes.length; i++) {
            ObservableList data = FXCollections.observableArrayList();
            for (int j = 1 ; j <= sizes[i]; j++) {
                data.add("Item " + j);
            }
            lv[i] = new ListView(data);
            hBox.getChildren().add(lv[i]);
        }

        Scene scene = new Scene(hBox, 800, 200);
        primaryStage.setScene(scene);
        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
    }
}
