wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes drawing box and connecting them Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "drawing box and connecting them " Watch "drawing box and connecting them " New topic
Author

drawing box and connecting them

Nimmy
Greenhorn

Joined: Apr 12, 2005
Posts: 13
I want to draw boxes (inside which I want to write the boxname)independently and connect them using connector(like -> so that I can make a tree structure. I can create tree which look like the windows directory structure. But here I want to drawboxes for each nodename and connect them later.

Is it possible to use JavaScript and accomplish this task?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
draw a box, all you need to do is set the border around your element. The line is tricky since You either have to use images or borders from other elements dynamicaly positioned.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

"Kathryn",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nimmy
Greenhorn

Joined: Apr 12, 2005
Posts: 13
Could you please explain this. Do you mean that I can use javascript or DHTML for doing this task? There is one more condition that I should be able to drag and drop this boxes.

Thanks
Kathryn
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Kathryn,

My request for you to adjust your display name to JavaRanch standards was not a suggestion. It is a requirement of the JavaRanch. Please adjust your display name as requested in my post prior to your next post.

With regards to your question, HTML and Javascript are not well suited technologies to general drawing. You are limited to what you can fake using images and CSS attributes of rectangular areas. If you need general drawing abilities you may want to investigate alternate technologies, such as Applets.

thanks,
bear
Forum bartender
 
jQuery in Action, 2nd edition
 
subject: drawing box and connecting them
 
Similar Threads
how to create a tree structure in jsp
How to hide a tree node from the GUI, URGENT!
Pagination -- Composite to List?
JTree
Drawing Tree