Java JFileChooser .isFileHidingEnabled ()

Syntax

JFileChooser.isFileHidingEnabled() has the following syntax.

public boolean isFileHidingEnabled()

Example

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


/* w  w w . j  a va 2  s  .  co  m*/
import javax.swing.JFileChooser;

public class Main {
  public static void main(String[] argv) {
    JFileChooser chooser = new JFileChooser();
    boolean hidingEnabled = chooser.isFileHidingEnabled();
    chooser.setFileHidingEnabled(false);
    chooser.showOpenDialog(null);
  }
}