posted 18 years ago
Overriding the toString() method of the object you put into the tree node is certainly the most natural way to do that, and I can't really see why you would not want to do it. But if there is some reason why not, you could probably have your TreeCellRenderer set some different text.