JTree image question

I have a question about using images in a JTree.I have like 2 parent nodes who both have a lot of child nodes now i know how to get an image for every node but how do i get 1 image for 1 parent with all his children and another image for the other parent with his children.
[287 byte] By [kryptonite88a] at [2007-11-27 5:36:10]
# 1
Probably by writing some code or something. Is this a design problem or a programming problem? You really haven't provided any useful details.
DrClapa at 2007-7-12 15:06:21 > top of Java-index,Java Essentials,New To Java...
# 2

It is a programming problem because i dont know how to give echt DefaultMutableTreeNode his own picture. You should think of it like msn when you log in your contacts are in a Tree and your offline contacts have a red icon and online contacts have green one. I need to to the same for my program(chat program). But i can't figure out how but i know how to give alle the DefaultMutableTreeNode's a picture but i cant give individual one's a picture.

I hope i cleared things up :)

kryptonite88a at 2007-7-12 15:06:21 > top of Java-index,Java Essentials,New To Java...