Log.log(Log.ERROR, MODULE, "Bad panel: " + className); Log.logException(Log.ERROR, MODULE, e);
Log.log(Log.LEVEL_ERROR, MODULE, "Bad panel: " + className); Log.logException(Log.LEVEL_ERROR, MODULE, e);
	private void loadPanes() {		Properties panes = new Properties();		try {			panes.load(getClass().getResourceAsStream("panes.properties"));			int i = 1;			String className = null;			while ((className = panes.getProperty("pane." + i++)) != null) {				try {					PreferencePanel pp = (PreferencePanel) Class.forName(className).newInstance();					pp.setMainFrame((MainFrame) getOwner());					pp.setDialog(this);					pp.buildUI();					panels.addElement(pp);					jPanels.add(className, pp);					panelNames.put(className, pp);				} catch (Exception e) {					Log.log(Log.ERROR, MODULE, "Bad panel: " + className);					Log.logException(Log.ERROR, MODULE, e);				}			}			jIcons.setModel(panels);		} catch (IOException e) {			Log.logException(Log.ERROR, MODULE, e);		}	}