0

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 :

enter image description here

From https://en.wikipedia.org/wiki/Tree_%28data_structure%29#/media/File:Binary_tree.svg

Andrew Thompson
  • 166,747
  • 40
  • 210
  • 420
Soumya Kanti Naskar
  • 981
  • 2
  • 13
  • 28
  • 1
    As an [example](http://stackoverflow.com/questions/15455739/animate-change-of-color-of-nodes-in-insertion-of-binary-search-tree/15458451#15458451) – MadProgrammer Apr 07 '16 at 09:37

1 Answers1

0

You can use JavaFX for that:

https://en.wikipedia.org/wiki/JavaFX http://docs.oracle.com/javase/8/javase-clienttechnologies.htm

That's the newest Java GUI technology!

mrbela
  • 4,156
  • 7
  • 42
  • 74