public static void changeFocusToTextArea(OutlinerCellRendererImpl textArea, JoeTree tree, OutlineLayoutManager layout) {
		Node currentNode = textArea.node;

		int index = textArea.getText().length();
		tree.setCursorPosition(index);
		tree.getDocument().setPreferredCaretPosition(index);		
		
		tree.setComponentFocus(OutlineLayoutManager.TEXT);
		tree.clearSelection();
		layout.draw(currentNode,OutlineLayoutManager.TEXT);
	}