Changing the background color of a node using JColorChooser



Hello all,

I am new with jtree, but what i'd like to do is to change the
background of a node that i selected by opening a JColorChooser dialog,
then i'd like to set the background of the selected node to the color i
choose in the dialog.

I tried this way but did nothing :

tree.getCellRenderer().getTreeCellRenderer(....).setBackground(selectedColor);

Can someone help me please?

Thanks.

.