public JSplitPane getMainPane(JTree tree, Controller controller, boolean b) {
		this.controller = controller;
		if (scrollPane == null)
			scrollPane = new JScrollPane();
		scrollPane.setViewportView(tree);
		scrollPane.setMinimumSize(new Dimension(100, 100));
		scrollPane.setPreferredSize(new Dimension(200, 200));

		splitPane.setContinuousLayout(true);
		splitPane.setOneTouchExpandable(false);

		splitPane.setRightComponent(getRightComponent(b));
		splitPane.setLeftComponent(scrollPane);
		return splitPane;
	}