Gallery g = Gallery.readFromProperties(newProps, 99, mainFrame, false);
Gallery g = Gallery.readFromProperties(newProps, 99, mainFrame.jStatusBar, false);
	public void actionPerformed(ActionEvent e) {		try {			InputStream content = (InputStream) new URL(jURL.getText()).getContent();			GalleryProperties newProps = new GalleryProperties();			newProps.load(content);			StringBuffer overridden = new StringBuffer("<ul>");			if (newProps != null) {				GalleryProperties props = GalleryRemote.getInstance().properties;				boolean newGallery = false;				Iterator it = newProps.keySet().iterator();				while (it.hasNext()) {					String key = (String) it.next();					String value = newProps.getProperty(key);					if (key.endsWith(".99")) {						if (!newGallery) {							// add Gallery access settings							Gallery g = Gallery.readFromProperties(newProps, 99, mainFrame, false);							if (g != null) {								g.setPrefsIndex(mainFrame.galleries.getSize());								mainFrame.galleries.addElement(g);								newGallery = true;								overridden.append("<li>").append(g.toString()).append("</li>");							}						}					} else {						props.setProperty(key, value);						overridden.append("<li>").append(key).append("</li>");					}				}				overridden.append("</ul>");				JOptionPane.showMessageDialog(this, "<html>Loaded configuration file.<br>Overridden properties:" + overridden.toString() + "</html>", "Done", JOptionPane.PLAIN_MESSAGE);			} else {				JOptionPane.showMessageDialog(this, "Empty configuration file.", "Error", JOptionPane.ERROR_MESSAGE);			}		} catch (Exception ex) {			JOptionPane.showMessageDialog(this, "Could not find configuration file.", "Error", JOptionPane.ERROR_MESSAGE);			Log.log(Log.ERROR, MODULE, "Fetching configuration failed");			Log.logException( Log.ERROR, MODULE, ex );		}	}