void (@NotNull JTable table, @Nullable Object value, boolean selected, boolean hasFocus, int row, int column) { if (row >= 0 && row < myModel.getRowCount()) { UrlInfo info = myModel.getRowValue(row); setForeground(selected ? table.getSelectionForeground() : table.getForeground()); setBackground(selected ? table.getSelectionBackground() : table.getBackground()); append(info.name, SimpleTextAttributes.REGULAR_ATTRIBUTES); } }