Question on Stack Overflow about how to get all items of a JTree. Look for kleopatra's answer for best practice.