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 . java2 s. c om
import javax.swing.JFileChooser;
public class Main {
public static void main(String[] argv) {
JFileChooser chooser = new JFileChooser();
boolean enabled = chooser.isMultiSelectionEnabled();
chooser.showOpenDialog(null);
}
}
Home »
Java Tutorial »
javax.swing »
Java Tutorial »
javax.swing »