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

TableView, TableColumn, scrollBar with horizontal orientation

XMLWordPrintable

    • x86
    • other

      FULL PRODUCT VERSION :
      java version "1.8.0_102"
      Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.3.9600]

      A DESCRIPTION OF THE PROBLEM :
      Horizontal ScrollBar move incorrect region.
      If add 100 columns last columns not fully visible.
      If add 300 columns. 4 columns not visible, 296 column not fully visible.
      More count columns, more columns invisible.

      REGRESSION. Last worked in version 8u102

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_102"
      Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Compile.
      2. Run.
      3. Scroll to end.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Can see all column.
      ACTUAL -
      Can`t see last column/s.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class Test extends Application {
          @Override
          public void start(Stage primaryStage) throws Exception {
              TableView<Model> tableView = new TableView<>();
              for (int item = 0; item < 300; item++) {
                  TableColumn<Model, Model> tableColumn = new TableColumn<>(item + "");
                  tableColumn.setCellValueFactory(new PropertyValueFactory<>("a"));
                  tableView.getColumns().add(tableColumn);
              }
              tableView.getItems().add(new Model(new SimpleStringProperty("A")));
              primaryStage.setScene(new Scene(new BorderPane(tableView)));
              primaryStage.setWidth(800);
              primaryStage.setHeight(600);
              primaryStage.show();
          }

          private class Model {
              private SimpleStringProperty aProperty;

              Model(SimpleStringProperty aProperty) {
                  this.aProperty = aProperty;
              }
          }
      }
      ---------- END SOURCE ----------

      SUPPORT :
      YES

        1. 8 b132.png
          8 b132.png
          68 kB
        2. 8u102.png
          8u102.png
          72 kB
        3. 9ea+126.png
          9ea+126.png
          71 kB
        4. Test.java
          1 kB

            jgiles Jonathan Giles
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: