Go to the documentation of this file.
19package org.sleuthkit.autopsy.communications;
21import java.awt.Component;
22import java.time.ZoneId;
23import java.time.ZoneOffset;
24import java.util.TimeZone;
25import javax.swing.table.TableCellRenderer;
26import org.netbeans.swing.outline.Outline;
27import org.sleuthkit.autopsy.core.UserPreferences;
28import org.sleuthkit.autopsy.datamodel.accounts.Accounts;
29import org.sleuthkit.datamodel.Account;
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 final String getIconFilePath(Account.Type type)
static void setColumnWidths(Outline outline)
static ZoneId getUserPreferredZoneId()
static boolean displayTimesInLocalTime()
static String getTimeZoneForDisplays()
static String getIconFilePath(Account.Type type)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.