Skip to Main Content

Java Programming

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!

FileNameExtensionFilter: show extension in File name

807605Jul 7 2007 — edited Jul 8 2007
I am using JFileChooser and FileNameExtensionFilter for programming File>Save As.

I allow to save a file with the extension "ac" or the extension "ps".

I have 2 FileNameExtensionFilters with these extensions.

I have 2 questions:
1) Is it possible to show the extension in the "File name" box (not just the "Files of type box"), such as:
out.ac or out.ps depending on the FileNameExtensionFilter?

2) Why is there no complaint if I try to save a file on top of an already existing file?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2007
Added on Jul 7 2007
7 comments
682 views