if (index < 0 || index >= table.getItemCount())
return;
table.getItem(index).setBackground(highlight ? highlightColor : table.getBackground());
if (index < 0 || index >= table.getItemCount())
return;
table.getItem(index).setBackground(highlight ? highlightColor : table.getBackground());