CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Posts
    10

    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

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    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.

  3. #3
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    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
  •  





Click Here to Expand Forum to Full Width

Featured