Here you can find the source of cleanFileSelector(JFileChooser filterUpdates)
public static void cleanFileSelector(JFileChooser filterUpdates)
//package com.java2s; //License from project: Open Source License import java.io.File; import javax.swing.JFileChooser; public class Main { public static void cleanFileSelector(JFileChooser filterUpdates) { File f = filterUpdates.getCurrentDirectory(); filterUpdates.setSelectedFile(new File(" ")); filterUpdates.setCurrentDirectory(f); }//from w w w.j a va 2 s . c o m }