public static JScrollPane install(JTree tree) { final NewErrorTreeRenderer renderer = new NewErrorTreeRenderer(); //new TreeLinkMouseListener(renderer.myColoredTreeCellRenderer).install(tree); new TreeNodePartListener(renderer.myRightCellRenderer).installOn(tree); return MultilineTreeCellRenderer.installRenderer(tree, renderer); }
public static JScrollPane install(JTree tree) { JScrollPane scrollPane = MultilineTreeCellRenderer.installRenderer(tree, new MessageTreeRenderer()); scrollPane.setBorder(IdeBorderFactory.createBorder(SideBorder.LEFT)); return scrollPane; }