posted 17 years ago
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?