Here you can find the source of getFixedFileChooser(File file)
Returns a file chooser that should not trip the bug with Java and Windows XP zip/rar folder feature.
public static JFileChooser getFixedFileChooser(File file)
//package com.java2s; //License from project: GNU General Public License import java.io.File; import javax.swing.JFileChooser; public class Main { /**//from w w w. ja v a2s .c o m * <strong>You must always use this!</strong> This is a convenience method, * see the actual for details. * * @see #getFixedFileChooser(File) */ public static JFileChooser getFixedFileChooser() { return getFixedFileChooser(null); } /** * <p> * Returns a file chooser that should not trip the bug with Java and Windows * XP zip/rar folder feature. Also checks and reports with a modal dialog if * there are zips on desktop, as the does not seem to work in all * environments. For more information about the bug see e.g. #5050516 at * bugs.sun.com. * </p> * * <p> * <strong>You must always use this!</strong> * </p> * * @return a safe file chooser */ public static JFileChooser getFixedFileChooser(File file) { JFileChooser fileChooser = file != null ? new JFileChooser(file) : new JFileChooser(); fileChooser.putClientProperty("FileChooser.useShellFolder", Boolean.FALSE); return fileChooser; } }