Not strictly game related, but anyhoo…
I have a JTree and a JList that contain the same sorts of things, and so i have implemented a common cell renderer.
The problem is that the cell sizes are being limited by the JTree and JList so that, with a non-12 point font and plain style, the text is cut off.
For example: with a 12 point font, everything is:
But when we try to use a bold, 24 point font in a fetching red hue, disaster strikes!
As can be seen, the cells are limited as though they contained standard, 12-point text.
The tree will limit the cells in width and height, whereas the list is slightly better behaved, limiting only the height.
Trying getLayout() on JTree returns null, so it’s difficult to find what is actually doing the layout, and presumably the limiting.
Does anybody have any hints on how to get JTrees and JLists to loosen up a bit?

