Package org.springframework.richclient.filechooser

Examples of org.springframework.richclient.filechooser.DefaultFileFilter


        final String approveButtonName, final String fileTypeDescription) {
        if (fileChooser == null) {
            fileChooser = new JFileChooser();
        }
        fileChooser.resetChoosableFileFilters();
        final DefaultFileFilter filter = new DefaultFileFilter();
        for (final String extension : defaultExtensions) {
            filter.addExtension(extension);
        }
        filter.setDescription(fileTypeDescription);
        fileChooser.setFileFilter(filter);
        final int returnVal = fileChooser.showDialog(parent, approveButtonName);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            return fileChooser.getSelectedFile();
        } else {
View Full Code Here

TOP

Related Classes of org.springframework.richclient.filechooser.DefaultFileFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.