Go to the documentation of this file.
19package org.sleuthkit.autopsy.guiutils;
22import java.awt.Component;
23import java.text.SimpleDateFormat;
24import javax.swing.JTable;
25import static javax.swing.SwingConstants.CENTER;
34 private static final long serialVersionUID = 1L;
35 private static final String FORMAT_STRING =
"MM/dd HH:mm";
36 private static final SimpleDateFormat dateFormat =
new SimpleDateFormat(FORMAT_STRING);
38 public ShortDateCellRenderer() {
39 setHorizontalAlignment(CENTER);
43 public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) {
45 setText(dateFormat.format(value));
void grayCellIfTableNotEnabled(JTable table, boolean isSelected)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.