Java JFileChooser .isTraversable (File f)
Syntax
JFileChooser.isTraversable(File f) has the following syntax.
public boolean isTraversable(File f)
Example
In the following code shows how to use JFileChooser.isTraversable(File f) method.
//from w w w . j a v a 2s.c o m
import java.io.File;
import javax.swing.JFileChooser;
public class Main {
public static void main(String[] argv) {
JFileChooser chooser = new JFileChooser();
boolean enabled = chooser.isTraversable(new File("abc"));
chooser.showOpenDialog(null);
}
}
Home »
Java Tutorial »
javax.swing »
Java Tutorial »
javax.swing »