in src/main/java/org/apache/sling/reqanalyzer/impl/gui/MainFrame.java [44:71]
public MainFrame(final File file, final int limit, final Dimension screenSize) throws FileNotFoundException,
IOException {
JTextPane text = Util.showStartupDialog("Reading from " + file, screenSize);
final RequestTrackerFile dm = new RequestTrackerFile(file, limit, text);
final JTable table = new JTable(dm);
table.setAutoCreateRowSorter(true);
table.setGridColor(Color.GRAY);
table.setShowGrid(true);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setRowSelectionAllowed(true);
table.setTableHeader(new JTableHeader(table.getColumnModel()));
Util.setupColumnWidths(table.getColumnModel(), MAIN_COLS);
// table.setFont(new Font("Monospaced", table.getFont().getStyle(), table.getFont().getSize()));
table.getSelectionModel().addListSelectionListener(new RequestListSelectionListener(this, table, screenSize));
add(new JScrollPane(table));
setTitle(file.getPath());
// setup location and size and ensure updating preferences
Util.setupComponentLocationSize(this, MAIN_X, MAIN_Y, MAIN_WIDTH, MAIN_HEIGHT, (int) screenSize.getWidth() / 4,
0, (int) screenSize.getWidth() / 2, (int) screenSize.getHeight() / 4);
Util.disposeStartupDialog(text);
}