This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Problem with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with "New Folder" icon" Watch "Problem with "New Folder" icon" New topic

Problem with "New Folder" icon

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178
Dear friends,

I have a "Browse" button in mmt Swing interface which pops up a dialog box.
I have used JFileChooser for this operation. By default "My Documents" folder of MS-Windows is displayed in the dialog.

In that particular folder only "New Folder" icon is disabled and also cannot create new folder by right clicking. But that "New Folder" icon is enabled in all the other directories and folders except "My Documents".
This was reported as a bug in java:

JFileChooser chooser = new JFileChooser();

What should i provide in the parent?

Kindly provide your help.
Thanks & Regards,
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Originally posted by vijaychandran rajagopalan:

...This was reported as a bug in java:


The bug which you shown has the status CLOSED,FIXED
I still have to try that one..

For your second query which is about the parent

parent is of type Component in which you can specify your JFrame object
Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178
Thanks for the reply.

They have made a workaround for that

I don't know how to implement this one. As suggested, we should change the read-only attribute of the directory.

Consider Paul's rocket mass heater.
subject: Problem with "New Folder" icon
Similar Threads
IndexOutOfBoundsException at javax.faces.component.UICompo
SCJP Brainteaser (9)
what is wrong with these two codes?
Available space for file on server
Multiple value return type in functions