JFileChooser

There is a textfield that says "File name", and i want to know how to get to that file, since sometimes when i run it, it only displays the name and not the extension.


Thanks
DrunkenTigerDDDAsked:
Who is Participating?
 
krakatoaConnect With a Mentor Commented:
As far as I know the JFC will show you the full name of the files. Maybe you have got the extension display switched off on the OS, or the file in question just doesnt have an extension - ?
0
 
mmuruganandamCommented:
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Correct. The File object returned will have the extension in the file-name. It might not be visible in the OS due to customized settings (in Windows, try Folder Options -> View -> Hide extensions for known filenames).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.