Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display Directory structure in tree format like windows explorer

 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi .........



I want do develop swing component like windows explorer to view the files and folder on the server
Also I want Copy Paste Option for the same
I want to integrate the same in my Web application

Please give me some guideline to start developing such component.
If any existing reference Please give me the link for the same.



Thanks in advance .........
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To browse the directory structure one usually uses JFileChooser in Swing.
What technology are you planning to use? You mention "web application"
Do you have an applet in mind?
 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFileChooser is for selecting file.

But I want to develop User Interface like Explorer tree structure by accessing the file system of the server.

In any thing applet or swing n then integrate to Web Application.
 
Mikko Kohtamäki
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for the starters...

How to Use Trees>
 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Requirement is : In web application, client user wants to access server side directory structure with some user-interface.

How can it be achieved in j2ee platform or will server-side javascript help ?
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you go through the link Mikko gave you?
To build the tree nodes, you will have to query the server (unless your client has access to all folders on the server, which I doubt)
From the nodes, you build a tree which you can display in an applet which is embedded on some web page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic