Java Code Examples for javax.swing.JFileChooser.setName()

The following are Jave code examples for showing how to use setName() of the javax.swing.JFileChooser class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: incubator-netbeans   File: PanelProjectLocationVisual.java   Source Code and License Vote up 5 votes
private static JFileChooser createChooser() {
    JFileChooser chooser = new JFileChooser();
    FileUtil.preventFileChooserSymlinkTraversal(chooser, null);
    chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );
    chooser.setAcceptAllFileFilterUsed( false );
    chooser.setName( "Select Project Directory" ); // XXX // NOI18N
    return chooser;
}
 
Example 2
Project: incubator-netbeans   File: PanelProjectLocationVisual.java   Source Code and License Vote up 5 votes
private static JFileChooser createChooser() {
    JFileChooser chooser = new JFileChooser();
    FileUtil.preventFileChooserSymlinkTraversal(chooser, null);
    chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );
    chooser.setAcceptAllFileFilterUsed( false );
    chooser.setName( "Select Project Directory" ); // XXX // NOI18N
    return chooser;
}