|
-
January 31st, 2003, 03:25 AM
#1
Treeview question.
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
-
January 31st, 2003, 07:18 AM
#2
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...
Last edited by dlorde; January 31st, 2003 at 07:26 AM.
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
January 31st, 2003, 11:54 AM
#3
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-.../TreeView.html
[I ended up making my own Custom Tag based on one that I found that I didn't like]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|