Alternate row color for treetable component

How can I go about adding alternate row colors for the intellij TreeTable component? My desired result is something like this. Thanks



2 comments
Comment actions Permalink

Unfortunately, additional color is hardcoded now.

com.intellij.util.ui.UIUtil#getDecoratedRowColor

You can switch off stripes:

myTreeTable.setStriped(false);

Also you can overwrite the following method and implement needed functionality:

com.intellij.ui.table.JBTable#prepareRenderer
0
Comment actions Permalink

thanks! this helped. 

0

Please sign in to leave a comment.