treenode compatable to java6