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

JComboBox not behaving properly with mouse move

    • b03
    • generic
    • generic, windows_xp
    • Verified

        JComboBox not behaving properly with mouse move.

        Steps to reproduce:
        ------------------
        1) Open SwingSet2
        2) Go to ComboBox demo
        3) Click on Second combo to get a drop down. Philip is selected.
        4) Now without clicking mouse move it over to first item.
        5) Notice that the selection has changed to first item (Jeff will be selected).
        6) Now press down arrow key. You will see Scott as selected.
        I think this is not correct. The selection should change to the next item in the combo when down arrow key is pressed, this how native windows ComboBox work.


        ###@###.### 2005-03-04 12:30:22 GMT
        From duplicate bug 6433300:
        ---
        The bug is in the inconsistence between selected item by mouse and by UP/DOWN keys in JComboBox's popup menu.

        To see the bug:
        1. Get focus in any ComboBox (for example, in Bugster)
        2. Open popup by pressing the DOWN key
        3. Place mouse cursor over an unselected item in the popup. Note that the item is highlighted now.
        4. Press DOWN or UP key and note that cursor has moved to a wrong item.

        See automated regression test in the attachment.
        ---

              alexp Alexander Potochkin (Inactive)
              mjoshisunw Mayank Joshi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: