Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drawing tree using applets

 
Priya Raja
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to create a java applet to draw a tree.
the java code that i have is





Now, if the user enters one superkingdom, the name of the superkingdom and a line is drawn. If the user enters two or more superkingdom, then both he line and names are over written.
Suppose if two superkingdons are entered, then two lines should be drawn in a ' V ' shape. all the lines sgould have a common starting point. I donot know how to do this. Kindly help me.
Thanks in advance...

Janani
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic