Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component delegate = renderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (!(delegate instanceof JLabel cmp)) return delegate; cmp.setHorizontalAlignment(SwingConstants.LEFT); Border border = cmp.getBorder(); JBEmptyBorder indent = JBUI.Borders.empty(0, 8); border = JBUI.Borders.merge(border, indent, true); cmp.setBorder(border); Font font = cmp.getFont(); cmp.setFont(RelativeFont.NORMAL.fromResource("Table.Header.fontSizeOffset", 0).derive(font)); return cmp; }