I have a JTree with checkboxes and a CheckRenderer that extends JPanel and implements TreeCellRenderer.
I want to increas the CheckRender panel size slightly but can not. I have tried creating an empty border and setting the bounds in the constructor. Also I modified the getPrefferedSize() method in the CheckRenderer. However the node size remains too small, any ideas?
Also I would like to change the foreground text color to white when the node is selected. How do you do that?
Please adjust your display name to conform to our naming policy. Thanks!
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus