Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

Processing
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,234 views