split.setRightComponent(editor.getComponent());
scroll.setViewportView(editor.getComponent());
	public void valueChanged(TreeSelectionEvent event)	{		if(editor != null)		{			editor.pushChanges();			editor = null;		}				TreePath selectedPath = event.getPath();		Object value = selectedPath.getLastPathComponent();				if(value instanceof AbstractPolicyNode)			editor = new AbstractPolicyEditor();		else if(value instanceof RuleNode)			editor = new RuleEditor();		else if(value instanceof ConditionNode)			editor = null;//TODO: implement condition editing		else if(value instanceof TargetNode)			editor = new TargetEditor(dbInterface.getBrokerPool());				int dividerLocation = split.getDividerLocation();		if(editor == null)			split.setRightComponent(new JPanel());		else						{			editor.setNode((XACMLTreeNode)value);			split.setRightComponent(editor.getComponent());		}		split.setDividerLocation(dividerLocation);							forceRepaint();	}