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()))