Changing the background color of a node using JColorChooser
- From: david.vauquelin@xxxxxxxxx
- Date: 28 Feb 2006 01:25:54 -0800
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.
.
- Prev by Date: Increasing height of Tabs in JTabbedPane
- Next by Date: Jlist & JGoodies Binding
- Previous by thread: Increasing height of Tabs in JTabbedPane
- Next by thread: Jlist & JGoodies Binding
- Index(es):