Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125886

[ListView] When all items are selected there are little gaps between groups of items.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • jdk1.8.0_b66 Mac OS X 10.7.4

      To reproduce:
      1. Select all and you will see the subject.

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Label;
      import javafx.scene.control.ListView;
      import javafx.scene.control.SelectionMode;
      import javafx.scene.layout.StackPane;
      import javafx.stage.Stage;

      public class JavaFXApplication16 extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              ListView lv = new ListView();
              for (int i = 0; i < 10; i++) {
                  lv.getItems().add(new Label("Label-" + i));
              }
              lv.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
              
              StackPane root = new StackPane();
              root.getChildren().add(lv);
              
              Scene scene = new Scene(root, 400, 300);
              
              primaryStage.setTitle("Hello World!");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }
      }

            Unassigned Unassigned
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: