This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Swing / AWT / SWT / JFace
 
RSS feed
 
New topic
Author

Display Directory structure in tree format like windows explorer

shashi wagh
Ranch Hand

Joined: Oct 30, 2008
Messages: 34

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
Bartender

Joined: Jul 26, 2007
Messages: 4244

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?

work is the scourge of the drinking class
shashi wagh
Ranch Hand

Joined: Oct 30, 2008
Messages: 34

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

Joined: Dec 13, 2008
Messages: 107

for the starters...

How to Use Trees>
shashi wagh
Ranch Hand

Joined: Oct 30, 2008
Messages: 34

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
Bartender

Joined: Jul 26, 2007
Messages: 4244

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.

work is the scourge of the drinking class
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Swing / AWT / SWT / JFace
 
RSS feed
 
New topic
hibernate profiler

.