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

JTree KeyEvent.VK_RIGHT's "selectChild" action can't go throgh all treenodes.

    XMLWordPrintable

Details

    Description

      FULL PRODUCT VERSION :
       1.6.0-b105

      ADDITIONAL OS VERSION INFORMATION :
      windows

      A DESCRIPTION OF THE PROBLEM :
      JTree KeyEvent.VK_RIGHT's "selectChild" action can't go throgh all treenodes on JDK1.6.0

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just new JTree() , and select the root node, then press KeyEvent.VK_RIGHT keyboard, in JDK1.4 and JDK1.5,you can go throgh all treenodes by the method, but in JDK1.6.0 you can only go to the first leaf node.

      In JDK1.4 or JDK1.5 when i press KeyEvent.VK_RIGHT from the root node can go through
      all tree nodes, but in JDK1.6 stop at:
       JTree--
             |
             --Colors
                   |
                   --blue // stop here

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.BorderLayout;

      import javax.swing.JFrame;
      import javax.swing.JScrollPane;
      import javax.swing.JTree;

      public class T {
      public static void main(String[] args) throws Exception {
      JFrame frame = new JFrame();
      frame.getContentPane().setLayout(new BorderLayout());
              frame.getContentPane().add(new JScrollPane(new JTree()),BorderLayout.CENTER);
              frame.setSize(800,600);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      }
      }
      ---------- END SOURCE ----------

      Release Regression From : 5.0u9
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

      Attachments

        Issue Links

          Activity

            People

              shickeysunw Shannon Hickey (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: