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

Going down through ComboBox doesnt give proper values

XMLWordPrintable

    • generic
    • generic

      FULL PRODUCT VERSION :
      java version "1.8.0_131"
      Java<TM> SE Runtime Environment <build 1.8.0_131-b11>
      Java HotSpot<TM> 64-Bit Server VM <build 25.131-b11, miced mode>

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      when i use key down arrow while scrolling comboBox and i have elements of same value for example "hello" and another "hello" it skips the 2nd hello and goes straight to another index after those same values

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      c = FXCollections.observableArrayList();
      c.addAll("hello", "hi", "hello", "hello", "hi");
      cb.setOnAction((event) -> {
             System.out.println("ComboBox Action (selected: " + cb.getValue().toString() + ")");
      });
      cb.setItems(c);


      REPRODUCIBILITY :
      This bug can be reproduced often.

      ---------- BEGIN SOURCE ----------
      c = FXCollections.observableArrayList();
      c.addAll("hello", "hi", "hello", "hello", "hi");
      cb.setOnAction((event) -> {
           System.out.println("ComboBox Action (selected: " + cb.getValue().toString() + ")");
       });
      cb.setItems(c);
      ---------- END SOURCE ----------

      SUPPORT :
      YES

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: