public TreeTableView(ListTreeTableModelOnColumns treeTableModel) { super(treeTableModel); setRootVisible(false); setTreeCellRenderer(new TreeCellRenderer() { private final TreeCellRenderer myBaseRenderer = new HighlightableCellRenderer(); public Component getTreeCellRendererComponent(JTree tree1, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { JComponent result = (JComponent)myBaseRenderer.getTreeCellRendererComponent(tree1, value, selected, expanded, leaf, row, hasFocus); result.setOpaque(!selected); return result; } }); setSizes(); }
public TodoCompositeRenderer() { myNodeRenderer = new NodeRenderer(); myColorTreeCellRenderer = new HighlightableCellRenderer(); }