This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Applets and the fly likes drawing tree using applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "drawing tree using applets" Watch "drawing tree using applets" New topic
Author

drawing tree using applets

Priya Raja
Greenhorn

Joined: Jun 17, 2006
Posts: 21
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


The TIME to be HAPPY is NOW<br />The PLACE to be HAPPY is HERE<br />And the WAY to be HAPPY is to MAKE OTHERS HAPPY
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: drawing tree using applets