2 Replies Latest reply: Nov 26, 2010 9:56 AM by Gen.Java RSS

    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.