Use custom TablecellRenderer in a JTable
问题 I am new to Java. I have created a JTable . This is how addRow method works when I try to add a row to the table. private void addTableRow(String type, String name, String rank, String notes, String location, Color color) { boolean isExport = isExportEnable(); tableModel.addRow(new Object[] { type, name, rank, notes, location, isExport }); } When adding the row I want to fill a different color for the column index 6. I created a custom table cell renderer. public Component