List of usage examples for javax.swing.plaf.basic BasicFileChooserUI getNewFolderAction
public Action getNewFolderAction()
From source file:Main.java
public static void main(String[] args) { JFileChooser chooser = new JFileChooser(); BasicFileChooserUI ui = (BasicFileChooserUI) chooser.getUI(); Action folder = ui.getNewFolderAction(); folder.setEnabled(false);/*from w ww . j ava2 s . co m*/ chooser.showSaveDialog(null); }