private void init_tbl_branch_locations() { tbl_branch_locations_ALM = new ArrayListModel(); tbl_branch_locations_M = new Tblbranch_locationsModel(tbl_branch_locations_ALM); tbl_branch_locations.getTableHeader().setPreferredSize(new Dimension(100, 40)); tbl_branch_locations.setModel(tbl_branch_locations_M); tbl_branch_locations.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); tbl_branch_locations.setRowHeight(25); int[] tbl_widths_branch_locations = {200, 200, 70, 0, 0, 0}; for (int i = 0, n = tbl_widths_branch_locations.length; i < n; i++) { if (i == 0) { continue; } TableWidthUtilities.setColumnWidth(tbl_branch_locations, i, tbl_widths_branch_locations[i]); } Dimension d = tbl_branch_locations.getTableHeader().getPreferredSize(); d.height = 25; tbl_branch_locations.getTableHeader().setPreferredSize(d); tbl_branch_locations.getTableHeader().setFont(new java.awt.Font("Arial", 0, 11)); tbl_branch_locations.setRowHeight(25); tbl_branch_locations.setFont(new java.awt.Font("Arial", 0, 11)); }