Example usage for javax.swing JFileChooser isFileSelectionEnabled

List of usage examples for javax.swing JFileChooser isFileSelectionEnabled

Introduction

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

Prototype

@BeanProperty(bound = false)
public boolean isFileSelectionEnabled() 

Source Link

Document

Convenience call that determines if files are selectable based on the current file selection mode.

Usage

From source file:Main.java

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

    chooser.showOpenDialog(null);/*from   w ww  .  ja  v a2  s  .c om*/
}