Here you can find the source of cleanFileSelector(JFileChooser filterUpdates)
Parameter | Description |
---|---|
filterUpdates | a parameter |
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 { /**/*from w ww . j a v a2s . c o m*/ * set selected file to " ", and current directory to last selected current directory * @param filterUpdates */ public static void cleanFileSelector(JFileChooser filterUpdates) { File f = filterUpdates.getCurrentDirectory(); filterUpdates.setSelectedFile(new File(" ")); filterUpdates.setCurrentDirectory(f); } }