Click to See Complete Forum and Search --> : TreeView-Applet and AppletContext


René
January 21st, 1999, 04:52 AM
I use JDK 1.1.6 or JDK 1.2 and the Microsoft Internet Explorer 4.x


I have the following problem:


I tried to design an TreeView-Applet, which in a first step scans the harddisk

of the LOCAL machine, to see which files and folders there are.

Then it should build out of these information a Tree-View, like the Explorer,

and if the user clicks on an item of the tree, the specific file should be

displayed in a frame in the same HTML-Page, which the applet contains.


Because there are a lot of files and folders on the harddisk, the tree should

be generated dynamicaly that means if the user opens a folder the new information

should be loaded and the content of the folder should be generated.


A working example of what i need is on the following webpage:


http://premium.microsoft.com/msdn/library


But there is no code for this applet available :0(


If anybody has an idea or even some sample (with code) that would be very nice!!!


Thanks for your effort


René

dev
January 28th, 1999, 10:20 AM
For the security reasons Applet are not allowed to access file system of the

LOCAL machine. And therefore U can't develop such a applet.

But hold this security restriction can be over come by using signed applet

but not all the browsers are yet equipped with this feature.

Try find more information on the signed applets and the browsers that

support this.

hope this will help.

shark
April 12th, 1999, 06:52 AM
I'm working on a similar project. my tree-view (explorer like) APPLET doesn't have to be dynamic, but its reads the input (directory structure) from a remote computer.
i seem to have problems, though, to display the menubar and the tree control in the applet - since the applet is not derived from class frame. When the applet runs as a standalone ("> java TreeApplet") - it works properly, but when i run it from an html i c nothing on screen except the appletviewer with the msg "applet started".
How did u succeeded in presenting the UI, meaning the tree (& possible menubar) within the applet ? i'd be happy to swap code with u, espacaly the UI. the metter is quit urgent. thx.