What I'm trying to do is create a JTree with each cell containing normal text but also containing the right-hand side of the text for each cell (right-aligned to the edge of the tree, regardless of hierarchy level).
I tried to create my own TreeCellRenderer, but the cell sizes are not updated. I also tried this idea with a tree user interface, but I am experiencing similar problems.
I also tried to create a custom component with JPenel glued to the right of the tree. This was most successful, but I could not strengthen the trees on the right side and touch this additional panel:
alt text http://img718.imageshack.us/img718/3676/problem.png
Epaga source
share