Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Folder Explorer GUI

Status
Not open for further replies.

rekenaar

Technical User
Feb 16, 2005
38
ZA
Hello.

Do anyone know if there is a way to create a folder explorer?

What I mean by that: The user should see a list of directories and then click on a specific directory and then the files in the directory will be shown beneath it. If they double click a file it should be saved or opened. Or something similiar as explained.

Almost like JFileChooser. Think Windows Explorer but inside a panel.

Thanks in advance.
 
>>> Almost like JFileChooser

Why not JFileChooser ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Thanks for replying.

I am not using JFileChooser because there is a list on the left with links to desktop/recent documents that i do not want. The file name at the bottom I also don't want, in fact a way to limit which folders the user can browse will also be nice.
 
You can customize up to a certain point how the folders/files are displayed, but fundamentally, you need to offset the amount of work you want to do, versus how much you want the file chooser to look exactly how you want.

If you cannot live with the JFileChooser class, then you will have to create your own from scratch - using the java.io.File class, and various Swing/AWT classes.

Personally, I would accept the parts of JFileChooser you don't want rather than grow your own.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top