public void createTree(int nodes) {
		top = new DefaultMutableTreeNode(
				Tools.getLocalizedString("FUNCTION_EXPLORATOR"));
		for (int i = 0; i < nodes; i++) {
			DefaultMutableTreeNode function = new DefaultMutableTreeNode(
					Tools.getLocalizedString("FUNCTION")
							+ String.valueOf(i + 1));
			top.add(function);
		}
		tree = new JTree(top);
		tree.getSelectionModel().setSelectionMode(
				TreeSelectionModel.CONTIGUOUS_TREE_SELECTION);
		tree.addTreeSelectionListener(this);

		tree.setSize(new Dimension(200, 200));
	}