TableCellRenderer (int row, int column) { return (table1, value, isSelected, hasFocus, row1, column1) -> { JLabel label = new JLabel((String)data[row][column]); label.setOpaque(true); label.setBackground(JBColor.border()); label.setBorder(JBUI.Borders.emptyLeft((int) Math.ceil(UISettings.getDefFontSize()))); return label; }; }