19 package org.sleuthkit.autopsy.communications;
21 import java.awt.Component;
22 import java.time.ZoneId;
23 import java.time.ZoneOffset;
24 import java.util.TimeZone;
25 import javax.swing.table.TableCellRenderer;
26 import org.netbeans.swing.outline.Outline;
58 final int rows = Math.min(100, outline.getRowCount());
60 for (
int column = 0; column < outline.getColumnCount(); column++) {
61 int columnWidthLimit = 500;
65 for (
int row = 0; row < rows; row++) {
66 TableCellRenderer renderer = outline.getCellRenderer(row, column);
67 Component comp = outline.prepareRenderer(renderer, row, column);
68 columnWidth = Math.max(comp.getPreferredSize().width, columnWidth);
71 columnWidth += 2 * margin + padding;
72 columnWidth = Math.min(columnWidth, columnWidthLimit);
74 outline.getColumnModel().getColumn(column).setPreferredWidth(columnWidth);
static void setColumnWidths(Outline outline)
static String getIconFilePath(Account.Type type)
static ZoneId getUserPreferredZoneId()
static String getTimeZoneForDisplays()
static final String getIconFilePath(Account.Type type)
static boolean displayTimesInLocalTime()