JFileChooser.DIRECTORIES_ONLY : JFileChooser « javax.swing « Java by API
- Java by API
- javax.swing
- JFileChooser
JFileChooser.DIRECTORIES_ONLY
import javax.swing.JFileChooser;
public class Main {
public static void main(String[] argv) {
JFileChooser fileChooser = new JFileChooser(".");
fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
}
}
Related examples in the same category