Example usage for javax.swing JFileChooser resetChoosableFileFilters

List of usage examples for javax.swing JFileChooser resetChoosableFileFilters

Introduction

In this page you can find the example usage for javax.swing JFileChooser resetChoosableFileFilters.

Prototype

public void resetChoosableFileFilters() 

Source Link

Document

Resets the choosable file filter list to its starting state.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JFileChooser chooser = new JFileChooser();
    File f = new File(new File("filename.txt").getCanonicalPath());

    chooser.resetChoosableFileFilters();
    chooser.showDialog(new JFrame(""), null);
    File curFile = chooser.getSelectedFile();
}