19 package org.sleuthkit.autopsy.guiutils;
21 import java.awt.Color;
22 import java.awt.Component;
23 import javax.swing.JTable;
24 import static javax.swing.SwingConstants.LEFT;
25 import javax.swing.table.DefaultTableCellRenderer;
36 setHorizontalAlignment(LEFT);
42 setText(value.toString());
49 if (table.isEnabled()) {
55 setBackground(table.getSelectionBackground());
56 setForeground(table.getSelectionForeground());
58 setBackground(table.getBackground());
59 setForeground(table.getForeground());
65 setBackground(Color.lightGray);
66 setForeground(Color.darkGray);
static final long serialVersionUID
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
void grayCellIfTableNotEnabled(JTable table, boolean isSelected)