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

Heavyweight Popup in the Combo box should not get focus for keyboard navigation

XMLWordPrintable

    • x86, sparc
    • generic, solaris_7, windows_nt, windows_2000

      Steps to reproduce:
      ------------------
      1. Run the following program.
      2. Use spacebar or "down" arrow key to drop down the popup portion.
      3. Now continue pressing "down" arrow key results in nothing.
      4. Pressing "Esc" key does not close the popup.

      Tried and found happening in Windows2000 and Windows98 platforms.

      Code used:
      ---------
      import javax.swing.*;

      public class testCombo extends JPanel {
        String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };

        public testCombo() {
          JComboBox combo = new JComboBox(petStrings);
          add(combo);
        }

        public static void main(String args[]) {
          JFrame frame = new JFrame("testCombo");

          frame.setContentPane(new testCombo());
          frame.pack();
          frame.setVisible(true);
        }
      }

            mdavidsosunw Mark Davidson (Inactive)
            sramansunw Sridhar Raman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: