aspose file tools
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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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...
Consider Paul's rocket mass heater.
subject: modified jfilechooser...