VcsCommitStyle (int row, int column, boolean hasFocus, boolean selected) { Component dummyRendererComponent = myDummyRenderer.getTableCellRendererComponent(myTable, "", selected, hasFocus, row, column); Color background = selected ? getSelectionBackground(myTable.hasFocus()) : getTableBackground(); return createStyle(dummyRendererComponent.getForeground(), background, VcsLogHighlighter.TextStyle.NORMAL); }