Package org.openscience.jchempaint.io

Examples of org.openscience.jchempaint.io.ChemicalFilesFilter


    public void actionPerformed(ActionEvent e) {

        JFileChooser chooser = new JFileChooser();
        chooser.setCurrentDirectory(jcpPanel.getCurrentWorkDirectory());
        chooser.setAcceptAllFileFilterUsed(false);
    chooser.addChoosableFileFilter(new ChemicalFilesFilter());
        chooser.setAcceptAllFileFilterUsed(true);
        JCPFileFilter.addChoosableFileFilters(chooser);
        if (jcpPanel.getCurrentOpenFileFilter() != null) {
            for(int i=0;i<chooser.getChoosableFileFilters().length;i++){
                if(chooser.getChoosableFileFilters()[i].getDescription().equals(jcpPanel.getCurrentOpenFileFilter().getDescription()))
View Full Code Here

TOP

Related Classes of org.openscience.jchempaint.io.ChemicalFilesFilter

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.