Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modified jfilechooser...

 
kizgincocuk kizgincocuk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kizgincocuk kizgincocuk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for replying ..
i already implement jtree for that function ..
just searching for is there an easier way...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic