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

ListView item are invisible or hidden while navigating

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • fx2.0
    • fx1.3.1, fx2.0
    • javafx
    • windows vista ultimate, jdk6 , javafx 2.0 EA b18.

      I have a Listview which contains 100 items, when i navigate the listview the last 10 or 11 items are not visible i,e they are hidden.

      Step to reproduce :-
      -------------------------
      1) Run the testcase.
      2) When the stage is visible.
      3) Drag the thumb for the last item i,e thumb touches the down arrow.
      4) click on the 100 item and press the up arrow key till the selection reaches the first item. Observe that thumb dn't touch the up arrow, but the selection is on the first
      cell.
      5) Now once press the down arrow key till the thumb touches the down array of the scrollbar. Observe after 89th element other elements are not seen.
      If you see the same then the bug is reproduced.


      Test Case
      -----------------

      package b18;

      import java.util.ArrayList;
      import javafx.collections.Sequence;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.scene.control.ListView;
      import javafx.stage.Stage;

      /**
       *
       * @author Lawrence PremKumar
       */
      public class TestListView1 extends javafx.application.Application{

          Stage stage = new Stage();

          @Override
          public void start(Stage stage){
              Group root = new Group();
              Scene scene = new Scene(root , 400,400);
              Sequence children = root.getChildren();
              ListView list = new ListView();
              list.setLayoutX(10);
              list.setLayoutY(10);
              ArrayList listValue = new ArrayList();
              for(int i=1;i<=100;i++)
                  listValue.add("Item # - "+i);
              list.setItems(listValue);
              stage.setScene(scene);
              children.add(list);
              stage.setVisible(true);
          }

          public static void main(String []args){
              javafx.application.Launcher.launch(TestListView1.class, args);
          }

      }

            jgiles Jonathan Giles
            lpremkumajfx Lawrence Premkumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: