public static void removeCols(JTable paymentTable) {

        TableColumnModel tcm = paymentTable.getColumnModel();
        System.out.println("getColumnCount:" + tcm.getColumnCount());
       
        if (tcm.getColumnCount() == 13) {
            paymentTable.removeColumn(tcm.getColumn(12));
        }
        if (tcm.getColumnCount() == 12) {
            paymentTable.removeColumn(tcm.getColumn(11));

        }
        if (tcm.getColumnCount() == 11) {
            paymentTable.removeColumn(tcm.getColumn(10));
        }
         if (tcm.getColumnCount() == 10) {
            paymentTable.removeColumn(tcm.getColumn(9));
        }
    }