private void setTableSize(JTable table) {
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
for (int i = 0; i < table.getColumnCount(); i++) {
int vColIndex = i;
TableColumn col = table.getColumnModel().getColumn(vColIndex);
if (i == 0) {
int width = 60;
col.setPreferredWidth(width);
}
if (i == 1) {
int width = 150;
col.setPreferredWidth(width);
}
if (i == 2) {
int width = 100;
col.setPreferredWidth(width);
}
if (i == 3) {
int width = 60;
col.setPreferredWidth(width);
}
}
}