Mleskine
January 31st, 2003, 02:25 AM
Hello,
I have a Treeview on my code and i would like it to build the tree with code if it's given a root folder on my computer. Like if i give it a c:\program files it would build the treeview from that folder on. Anyone have ideas how this is done in javascript?
thanks
dlorde
January 31st, 2003, 06:18 AM
As far as I know, Treeview is not a standard AWT or Swing component, so could you explain what the Treeview is (is it a Java component?) and how JavaScript connects with it?
What is the context of your code? Is it a Java application or an applet, etc.?
I'm not well up on JavaScript (this is a Java forum, not JavaScript), but I don't think scripting languages like JavaScript have any I/O facilities to allow them to read from or write to the file system, so I doubt that you could read the local directory structure to put into your treeview with JavaScript.
It is a mathematical fact that the casting of this pebble from my hand alters the centre of gravity of the universe...
Goodz13
January 31st, 2003, 10:54 AM
I did see TreeView somewhere when I was trying to get a Custom Tag simular to a JTree to show on my JSP page. I beleve it's a third party component. It extends JTree
Here's the Java Docs
http://wasa.sourceforge.net/javadoc-dev/fr/jussieu/gla/wasa/monitor/gui/frame/TreeView.html
[I ended up making my own Custom Tag based on one that I found that I didn't like]