private void openConfig() {
		int returnVal = configChooser.showOpenDialog(this);

        if (returnVal == JFileChooser.APPROVE_OPTION) {
            
        	SPContainer spc = null;
        	String fileName = "";
        	
        	try {
        		File file = configChooser.getSelectedFile();
        		String path = file.getPath();
        		fileName = file.getName();
                String config = readFile(path);
                
                spc = scriptParser.parseJSConfig(config);
                
        	}
        	catch(Exception exc) {
        		JOptionPane.showMessageDialog(this,
    			    "Couldn't read config file!",
    			    "Error!",
    			    JOptionPane.ERROR_MESSAGE);
        	}
        	
        	if(spc != null) {
        		spcList.add(spc);
        		tflModel.addElement(spc.getName() + " - " + fileName);
            	ptm.addConfig(spc);
        	}
        }
	}