@Override
	public void startSetup(Attributes atts) {
		String title = atts.getValue(A_TITLE);
		String id = atts.getValue(A_ID);
		
		
		// Add this panel to the PreferencesFrame.		
		PreferencesFrame pf = (PreferencesFrame) GUITreeLoader.reg.get(GUITreeComponentRegistry.PREFERENCES_FRAME);
		
		// Add the preference panel at the appropriate depth.
		int depth = 0;
		while (true) {
			GUITreeComponent c = GUITreeLoader.elementStack.get(GUITreeLoader.elementStack.size() - ++depth);
			if(!(c instanceof PreferencesPanel)) {
				depth--;
				break;
			}
		}
		pf.addPanel(this, title, depth);
		
		// Add this panel to the PreferencesPanel Registry
		Outliner.prefs.addPreferencesPanel(id, this);
		
		// Start setting up box
		addSingleItemCentered(new JLabel(new StringBuffer().append("<html><font size=\"+1\">").append(title).append("</font></html>").toString()), this);
	}