public void publishLayers(ArrayList<String> layers) {
		int matchedIndex = -1;
		/* Find out the index of any layer that's been preset in the config file. */
		if(!mConfig.getLayer().equalsIgnoreCase("")) {
			for(int i=0; i < layers.size(); i++) {
				if(mConfig.getLayer().equalsIgnoreCase(layers.get(i)))
					matchedIndex = i;
			}
		}
		mLayersComboBox.setModel(new DefaultComboBoxModel<String>(layers.toArray(new String[layers.size()])));
		if(matchedIndex != -1)
			mLayersComboBox.setSelectedIndex(matchedIndex);
		mFieldsPanel.removeAll();
		mFrame.pack();
	}