Example usage for javax.swing.plaf.basic BasicFileChooserUI getNewFolderAction

List of usage examples for javax.swing.plaf.basic BasicFileChooserUI getNewFolderAction

Introduction

In this page you can find the example usage for javax.swing.plaf.basic BasicFileChooserUI getNewFolderAction.

Prototype

public Action getNewFolderAction() 

Source Link

Document

Returns a new folder action.

Usage

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);
}