File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes modified jfilechooser... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "modified jfilechooser..." Watch "modified jfilechooser..." New topic

modified jfilechooser...

kizgincocuk kizgincocuk

Joined: Sep 15, 2003
Posts: 9
hi all..

is there a way to prevent filechooser to change directory to upper level..
i wanna keep user in a specific directory....
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

It sounds like you don't need to use a JFileChooser then... there are too many ways that it will let the user change directories. It would be pretty simple to populate a JList with all the files in your directory and just let the user select one.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
kizgincocuk kizgincocuk

Joined: Sep 15, 2003
Posts: 9
thanx for replying ..
i already implement jtree for that function ..
just searching for is there an easier way...
I agree. Here's the link:
subject: modified jfilechooser...
It's not a secret anymore!