List of usage examples for javax.swing JFileChooser getFileSelectionMode
public int getFileSelectionMode()
From source file:Main.java
public static void main(String[] a) { JFrame frame = new JFrame("JFileChooser Popup"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JFileChooser fileChooser = new JFileChooser("."); int mode = fileChooser.getFileSelectionMode(); frame.add(fileChooser, BorderLayout.CENTER); frame.pack();//w w w .j ava2 s .co m frame.setVisible(true); }