File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JFileChooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser" Watch "JFileChooser" New topic


Vaskar Dasgupta

Joined: Jul 20, 2001
Posts: 25
Have anyone noticed that i the "SaveDialog" of JFileChooser the 'Details' button on the top right corner is always pressed and one cannot toggle between 'Details' and 'List'. I believe its abug, if any one has come across this do please let me know. Secondly how do i get the File Types as ".xml" and remove the "All Files(*.*)" option in the "Files of Type :" combobox.
Your help is appreciated.
Vaskar Dasgupta

Kindly reply back.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
You need to create a filter. From the API
I agree. Here's the link:
subject: JFileChooser
It's not a secret anymore!