public static void removeCols(JTable paymentTable) {

        TableColumnModel tcm = paymentTable.getColumnModel();
        System.out.println("getColumnCount:" + tcm.getColumnCount());
        if (tcm.getColumnCount() == 10) {
            paymentTable.removeColumn(tcm.getColumn(9));
        }
        if (tcm.getColumnCount() == 9) {
            paymentTable.removeColumn(tcm.getColumn(8));
        }
        if (tcm.getColumnCount() == 8) {
            paymentTable.removeColumn(tcm.getColumn(7));
        }

    }