Log.log(Log.ERROR, MODULE, "Error trying to load Gallery profile " + i); Log.logException(Log.ERROR, MODULE, e);
Log.log(Log.LEVEL_ERROR, MODULE, "Error trying to load Gallery profile " + i); Log.logException(Log.LEVEL_ERROR, MODULE, e);
	public MainFrame() {		macOSXRegistration();		PropertiesFile p = GalleryRemote.getInstance().properties;		// load galleries		galleries = new DefaultComboBoxModel();		int i = 0;		while ( true ) {			try {				Gallery g = Gallery.readFromProperties(p, i++, jStatusBar);				if (g == null) {					break;				}				g.addListDataListener(this);				galleries.addElement(g);			} catch (Exception e) {				Log.log(Log.ERROR, MODULE, "Error trying to load Gallery profile " + i);				Log.logException(Log.ERROR, MODULE, e);			}		}		// if no galleries available, create a blank one		/*if ( galleries.getSize() == 0 ) {			Gallery g = new Gallery(this);			galleries.addElement( g );		}*/		setIconImage(GalleryRemote.iconImage);		if ( System.getProperty("os.name").toLowerCase().startsWith("mac") ) {			// Install shutdown handler only on Mac			Runtime.getRuntime().addShutdownHook(new Thread() {				public void run() {					shutdown(true);				}			});		}	}