Example usage for javax.swing JFileChooser isTraversable

List of usage examples for javax.swing JFileChooser isTraversable

Introduction

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

Prototype

public boolean isTraversable(File f) 

Source Link

Document

Returns true if the file (directory) can be visited.

Usage

From source file:Main.java

public static void main(String[] argv) {
    JFileChooser chooser = new JFileChooser();
    boolean enabled = chooser.isTraversable(new File("abc"));

    chooser.showOpenDialog(null);//ww w  . j  a  v a 2s.  c  o  m
}