private void init_tbl_charges() { tbl_charges_ALM = new ArrayListModel(); tbl_charges_M = new TblchargesModel(tbl_charges_ALM); tbl_charges.setModel(tbl_charges_M); tbl_charges.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); tbl_charges.setRowHeight(25); // tbl_charges.setAutoResizeMode(0); int[] tbl_widths_accounts = {0, 0, 200, 150}; for (int i = 0, n = tbl_widths_accounts.length; i < n; i++) { if (i == 2) { continue; } TableWidthUtilities.setColumnWidth(tbl_charges, i, tbl_widths_accounts[i]); // TableWidthUtilities. // TableWidthUtilities. } tbl_charges.getTableHeader().setFont(new java.awt.Font("Arial", Font.BOLD, 10)); tbl_charges.setRowHeight(35); tbl_charges.setFont(new java.awt.Font("Arial", 1, 10)); }
private void init_tbl_baptism() { tbl_employee_payroll_ALM = new ArrayListModel(); tbl_employee_payroll_M = new TblInvoicesModel(tbl_employee_payroll_ALM); tbl_cust.setModel(tbl_employee_payroll_M); tbl_cust.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); tbl_cust.setRowHeight(25); // tbl_cust.setAutoResizeMode(0); int[] tbl_widths_accounts = {450, 0, 100, 100}; for (int i = 0, n = tbl_widths_accounts.length; i < n; i++) { if (i == 0) { continue; } TableWidthUtilities.setColumnWidth(tbl_cust, i, tbl_widths_accounts[i]); // TableWidthUtilities. // TableWidthUtilities. } tbl_cust.getTableHeader().setFont(new java.awt.Font("Arial", Font.BOLD, 12)); tbl_cust.setRowHeight(50); tbl_cust.setFont(new java.awt.Font("Arial", 1, 12)); }