permaculture playing cards*
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
Author

modified jfilechooser...

kizgincocuk kizgincocuk
Greenhorn

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....
thanx
Nathan Pruett
Bartender

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.


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

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: http://aspose.com/file-tools
 
subject: modified jfilechooser...