Java Swing Tutorial - Java JFileChooser .isMultiSelectionEnabled ()








Syntax

JFileChooser.isMultiSelectionEnabled() has the following syntax.

public boolean isMultiSelectionEnabled()

Example

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

/* w  w w .  j  a v a 2  s  .  c o m*/
import javax.swing.JFileChooser;

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

    chooser.showOpenDialog(null);
  }
}