Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

disabling "rename" on JFileChooser

843804Apr 26 2002 — edited Aug 31 2006
Hi,
I have to disable the rename option on JFileChooser. I understand that I'll have to extend the MetalFileChooserUI class and override the inner class definition of SingleClickListener in order to achieve this. I did exactly the same. But the result was not convincing. First of all the display went wrong. Only the names were displayed, the icons disappeared. Then when I clicked on the file names, it threw up NullPointerExceptions. Can anyone suggest the correct way to do it ?? Thanx.

Regards,
Guru
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2006
Added on Apr 26 2002
12 comments
1,002 views