need to add icon for each node in JTree ????
I need to add icon for each node in JTree,
Please H E L P . . .
Re: need to add icon for each node in JTree ????
By default JTree will give you one icon for each node. You can override that
behaviour by writing your own DefaultTreeCellRenderer for displaying different
icons for node. If you want to give the default icons of your own you can
call the following methods.
"Guy" <firstname.lastname@example.org> wrote:
>I need to add icon for each node in JTree,
>Please H E L P . . .
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center