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

JTree.expandPath(TreePath) does not work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs
    • None



      Name: asC58863 Date: 06/05/98


      JTree.expandPath(TreePath) does not work properly

      Here is the test demonstrating the bug:
      ------------------ Test.java -----------------
      import com.sun.java.swing.*;
      import com.sun.java.swing.tree.*;
       
      class Test {
        public static void main(String[] argv) {
            Object[] elems = { new Integer(1), new Integer(8), new Integer(2), new Integer(3), new Integer(4) };
            JTree tree = new JTree( elems);
            TreePath path = tree.getPathForRow(1);
            tree.expandPath( path);
            if(tree.isExpanded(path))
              System.out.println(" PASSED ");
             else
              System.out.println(" FAILED ");
            System.exit(0);
        }
      }
      -------------- Output from the test -----------------
      :\>java -fullversion
      java full version "JDK-1.2beta4-H"
      :\>java Test
       FAILED
      ------------------------------------------------------


      ======================================================================

            svioletsunw Scott Violet (Inactive)
            asemidetsunw Alexei Semidetnov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: