19 package org.sleuthkit.autopsy.casemodule.datasourcesummary;
 
   21 import java.awt.Component;
 
   22 import java.lang.reflect.InvocationTargetException;
 
   23 import javax.swing.JTable;
 
   24 import org.openide.nodes.Node;
 
   34 final class RightAlignedTableCellRenderer 
extends GrayableCellRenderer {
 
   36     private static final long serialVersionUID = 1L;
 
   39     public Component getTableCellRendererComponent(JTable table, Object value, 
boolean isSelected, 
boolean hasFocus, 
int row, 
int column) {
 
   40         setHorizontalAlignment(RIGHT);
 
   41         Object cellContents = null;
 
   42         if ((value instanceof NodeProperty)) {
 
   45                 cellContents = ((Node.Property) value).getValue();
 
   46             } 
catch (IllegalAccessException | InvocationTargetException ex) {
 
   53         if (null != cellContents) {
 
   54             setText(cellContents.toString());
 
void grayCellIfTableNotEnabled(JTable table, boolean isSelected)