<PAGE>   1

                                                                   EXHIBIT 10.31

                                 PROMISSORY NOTE

$146,250                                                           June 15, 1998

         FOR VALUE RECEIVED, James C. Garrett (the "Maker"), promises to pay to
ECC International Corp., a Delaware corporation (the "Company"), or order, at
the offices of the Company or at such other place as the holder of this Note may
designate, the principal sum of $146,250, together with interest on the unpaid
principal balance of this Note from time to time outstanding at the rate of
5.58% per year until paid in full. Except as otherwise set forth below,
principal and interest shall be paid in full on June 15, 2001.

         Interest on this Note shall be computed on the basis of a year of 365
days for the actual number of days elapsed. All payments by the Maker under this
Note shall be in immediately available funds.

         This Note shall become immediately due and payable without notice or
demand upon the occurrence at any time of any of the following events of default
(individually, an "Event of Default" and collectively, "Events of Default"):

         (1)      default in the payment or performance of this or any other
                  liability or obligation of the Maker to the holder, including
                  the payment when due of any principal, premium or interest
                  under this Note;

         (2)      the institution against the Maker or any indorser or guarantor
                  of this Note of any proceedings under the United States
                  Bankruptcy Code or any other federal or state bankruptcy,
                  reorganization, receivership, insolvency or other similar law
                  affecting the rights of creditors generally, which proceeding
                  is not dismissed within thirty (30) days of filing;

         (3)      the institution by the Maker or any indorser or guarantor of
                  this Note of any proceedings under the United States
                  Bankruptcy Code or any other federal or state bankruptcy,
                  reorganization, receivership, insolvency or other similar law
                  affecting the rights of creditors generally or the making by
                  the Maker or any indorser or guarantor of this Note of a
                  composition or an assignment or trust mortgage for the benefit
                  of creditors;

         (4)      the sale, transfer or other disposal of any or all of the
                  shares of common stock, $.10 par value per share, of the
                  Company (the "Shares") issued and sold to the Maker by the
                  Company pursuant to that certain Stock Purchase Agreement,
                  dated as of June 15, 1998, by and between the Company and the
                  Maker, provided that the death of the Maker shall not be
                  deemed to be a sale, transfer or other disposal of any or all
                  of the Shares; and




<PAGE>   2




         (5)      the failure of the Maker to commence the undertaking of the
                  duties and responsibilities of President and Chief Executive
                  Officer of the Company on or before June 30, 1998 pursuant to
                  that certain Employment Agreement, dated as of June 15, 1998,
                  by and between the Company and the Maker.

         Upon the occurrence of an Event of Default, the holder shall have then,
or at any time thereafter, all of the rights and remedies afforded by the
Uniform Commercial Code as from time to time in effect in the State of Delaware
or afforded by other applicable law.

         Every amount overdue under this Note shall bear interest from and after
the date on which such amount first became overdue at an annual rate which is
one (1) percentage point above the rate per year specified in the first
paragraph of this Note. Such interest on overdue amounts under this Note shall
be payable on demand and shall accrue and be compounded monthly until the
obligation of the Maker with respect to the payment of such interest has been
discharged (whether before or after judgment).

         In no event shall any interest charged, collected or reserved under
this Note exceed the maximum rate then permitted by applicable law and if any
such payment is paid by the Maker, then such excess sum shall be credited by the
holder as a payment of principal.

         All payments by the Maker under this Note shall be made without set-off
or counterclaim and be free and clear and without any deduction or withholding
for any taxes or fees of any nature whatever, unless the obligation to make such
deduction or withholding is imposed by law. The Maker shall pay and save the
holder harmless from all liabilities with respect to or resulting from any delay
or omission to make any such deduction or withholding required by law.

         Whenever any amount is paid under this Note, all or part of the amount
paid may be applied to principal, premium or interest in such order and manner
as shall be determined by the holder in its discretion.

         No reference in this Note to any guaranty or other document shall
impair the obligation of the Maker, which is absolute and unconditional, to pay
all amounts under this Note strictly in accordance with the terms of this Note.

         The Maker agrees to pay on demand all costs of collection, including
reasonable attorneys' fees, incurred by the holder in enforcing the obligations
of the Maker under this Note.


                                       -2-


<PAGE>   3



         No delay or omission on the part of the holder in exercising any right
under this Note shall operate as a waiver of such right or of any other right of
such holder, nor shall any delay, omission or waiver on any one occasion be
deemed a bar to or waiver of the same or any other right on any future occasion.
The Maker and every indorser or guarantor of this Note regardless of the time,
order or place of signing waives presentment, demand, protest and notices of
every kind and assents to any extension or postponement of the time of payment
or any other indulgence, to any substitution, exchange or release of collateral,
and to the addition or release of any other party or person primarily or
secondarily liable.

         This Note may be prepaid in whole or in part at any time or from time
to time, with the giving of such consent to be in the sole discretion of the
holder. Any such prepayment shall be without premium or penalty.

         None of the terms or provisions of this Note may be excluded, modified
or amended except by a written instrument duly executed on behalf of the holder
expressly referring to this Note and setting forth the provision so excluded,
modified or amended.

         All rights and obligations hereunder shall be governed by the State of
Delaware and this Note is executed as an instrument under seal.

ATTEST:

By:                                          /s/ James C. Garrett
    ---------------------------              -----------------------------------
Name:                                        James C. Garrett




                                       -3-