This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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...
 
Don't get me started about those stupid light bulbs.
 
subject: modified jfilechooser...