2 Replies Latest reply on Nov 26, 2010 3:56 PM by Gen.Java

    How can you sort List<DefaultMutableTreeNode>

    Gen.Java
      Hi all,

      I tried to sort List<DefaultMutableTreeNode> using Collections.sort() but it didn't compile, apparently because DefaultMutableTreeNode doesn't implement Comparable. So what can I do ?

      Thank you.