Package Utils

Examples of Utils.FileFilterImpl


                strDirrectory=new String(System.getenv("HOMEPATH")+"\\My Documents");
            else
                strDirrectory=new String(System.getenv("HOME"));
        }
        JFileChooser fdSave=new JFileChooser(strDirrectory);
        fdSave.addChoosableFileFilter(new FileFilterImpl("png", "PNG image"));
        int intResult=fdSave.showSaveDialog(mwcMain);
        if(intResult!=JFileChooser.APPROVE_OPTION)
        {
            fdSave=null;
            return;
View Full Code Here


            else
                strDirrectory=new String(System.getenv("HOME"));
        }
        JFileChooser fdOpen=new JFileChooser(strDirrectory);
       
        fdOpen.addChoosableFileFilter(new FileFilterImpl("vcd", "Virtual cache database"));
        int intResult=fdOpen.showOpenDialog(mwcMain);
        if(intResult==JFileChooser.APPROVE_OPTION)
        {
            IniHolder.WriteValue("DataWorkDir", fdOpen.getSelectedFile().getAbsolutePath().substring(0, fdOpen.getSelectedFile().getAbsolutePath().lastIndexOf((int)File.separatorChar)));
            File fleOpened=fdOpen.getSelectedFile();
View Full Code Here

TOP

Related Classes of Utils.FileFilterImpl

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.