}
private void populateList()
{
JDBMaterialLocation materialLocation = new JDBMaterialLocation(Common.selectedHostID, Common.sessionID);
JDBMaterialLocationTableModel materialLocationTable = new JDBMaterialLocationTableModel(materialLocation.getMaterialLocationDataResultSet(listStatement));
TableRowSorter<JDBMaterialLocationTableModel> sorter = new TableRowSorter<JDBMaterialLocationTableModel>(materialLocationTable);
jTable1.setRowSorter(sorter);
jTable1.setModel(materialLocationTable);
jScrollPane1.setViewportView(jTable1);
JUtility.scrolltoHomePosition(jScrollPane1);
// jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
jTable1.getTableHeader().setReorderingAllowed(false);
jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
jTable1.setFont(Common.font_list);
jTable1.getColumnModel().getColumn(0).setPreferredWidth(118);
jTable1.getColumnModel().getColumn(1).setPreferredWidth(118);
jTable1.getColumnModel().getColumn(2).setPreferredWidth(145);
jScrollPane1.repaint();
JUtility.setResultRecordCountColour(jStatusText, false, 0, materialLocationTable.getRowCount());
}