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

check out the create New Folder button in JFileChooser

 
Alan Shiers
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I'm working with JFileChooser in my project. Ever notice that when you're at a root directory or simply at the root of your drive, the Create New Folder button is disabled? That doesn't seem right! Seems to me that button should be enabled so you can create a new folder. Is there a way to ensure it remains enabled at a root directory? I'm using a class that extends FileSystemView which I pass onto the constructor of JFileChooser. This class limits access to the hard drive by creating a root directory for the program. Naturally, I would want the user to create new folders within the root directory, but JFileChooser isn't letting me do that.

Alan
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems to work OK for me (vista, java 1.6.something)

perhaps a platform/version issue?
 
Alan Shiers
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it is...my OS is Windows7, java 1.6 something also. Anybody else come across this issue?

Alan
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic