Java Swing Tutorial - Java JFileChooser .isAcceptAllFileFilterUsed ()








Syntax

JFileChooser.isAcceptAllFileFilterUsed() has the following syntax.

public boolean isAcceptAllFileFilterUsed()

Example

In the following code shows how to use JFileChooser.isAcceptAllFileFilterUsed() method.

//from www. j a v a 2  s .  co m

import javax.swing.JFileChooser;

public class Main {
  public static void main(String[] argv) {
    JFileChooser chooser = new JFileChooser();
    boolean enabled = chooser.isAcceptAllFileFilterUsed();

    chooser.showOpenDialog(null);
  }
}