JScrollPane (JTree tree) { final NewErrorTreeRenderer renderer = new NewErrorTreeRenderer(); //new TreeLinkMouseListener(renderer.myColoredTreeCellRenderer).install(tree); new TreeNodePartListener(renderer.myRightCellRenderer).installOn(tree); return MultilineTreeCellRenderer.installRenderer(tree, renderer); }