title: Draw A Tree Data Structure in Java
body: <p>Given a tree how one could approach to draw the same using Java Swing that what we draw in a simple piece of paper to understand a tree ? i.e. drawing all the nodes an values inside the node circle as well as threads to join the parents with the child and so on .The Structure will be like this : </p>
  
  <p><a href="https://i.stack.imgur.com/ofga0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ofga0.png" alt="enter image description here"></a></p>
  
  <p>From <a href="https://en.wikipedia.org/wiki/Tree_%28data_structure%29#/media/File:Binary_tree.svg" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Tree_%28data_structure%29#/media/File:Binary_tree.svg</a></p>