public void buildEventTree() {

		eventRootNode.removeAllChildren();

		List<ImgEvent> events = imageBrowser.getEvents();
		if (events == null) {
			return;
		}

		for (ImgEvent e : events) {
			Calendar c = new GregorianCalendar();
			c.setTimeInMillis(e.eventstart);
			int year = c.get(Calendar.YEAR);

			DefaultMutableTreeNode node = null;

			for (int i = 0; i < eventRootNode.getChildCount(); i++) {
				Object o = eventRootNode.getChildAt(i);
				if (o instanceof DefaultMutableTreeNode && o.toString().equals("" + year)) {
					node = (DefaultMutableTreeNode) o;
					break;
				}
			}

			if (node == null) {
				node = new DefaultMutableTreeNode("" + year);
				eventRootNode.add(node);
			}

			node.add(new DefaultMutableTreeNode(e, false));
		}

		eventTreeModel.reload();
	}