Component (JTable table, Object value, boolean selected, boolean focused, int row, int col) { JLabel label = (JLabel)super.getTableCellRendererComponent(table, value, selected, focused, row, col); label.setBorder(border); label.setHorizontalAlignment(col == 1 ? SwingConstants.LEFT : SwingConstants.RIGHT); if (row >= 0) { DirectoryGroup group = myModel.myGroups.get(row); if (col == 1) { @NlsSafe String paths = group.directories.stream().map(Path::toString).collect(Collectors.joining("<br>", "<html>", "</html>")); label.setToolTipText(paths); } else if (col == 2) { @NlsSafe String isoDate = FileTime.fromMillis(group.lastUpdated).toString(); label.setToolTipText(isoDate); } } return label; }