I'm building a JXTreeTable in which there are only two levels below the hidden root, so I want a border separating the top level nodes. However, when I use the BorderHighlighter, it's not drawing the hierarchical column correctly.
Just moving the mouse over the table results in continuously adding the border to the hierarchical cells until eventually the whole column is black.
I built a small example using JXTableTree sample code from a number of sites, including [InformIT] where I copy/pasted the code to build.2
I just added the highlighter code to the main() method in the example.
Highlighter topHighlighter = new BorderHighlighter(new HighlightPredicate() {
@Override
public boolean isHighlighted(Component renderer, ComponentAdapter adapter) {
return true;
}
}, BorderFactory.createMatteBorder(1, 0, 0, 0, Color.BLACK));
treeTable.addHighlighter(topHighlighter);
I've tried with what I think is the latest SwingX, version 1.6.4.