IOUtil.close(inputStream);
}
JTable table = new JTable(model);
JScrollPane scrollPane = new JScrollPane(table);
JTableHeader header = table.getTableHeader();
table.setDefaultRenderer(Percent.class, new PercentTableCellRenderer());
table.setDefaultRenderer(Integer.class, new PercentTableCellRenderer());
table.setDefaultRenderer(Long.class, new PercentTableCellRenderer());
table.setDefaultRenderer(Double.class, new PercentTableCellRenderer());
table.setDefaultRenderer(Float.class, new PercentTableCellRenderer());
//
table.setColumnSelectionAllowed(false);
header.addMouseListener(new TsvMouseAdapter(table));
context.setComponent(scrollPane);
}