private void btnOkayActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnOkayActionPerformed
   // now round to the nearest increment (up)
   int value = CurAmmo;
   if (value > Ammo.GetMaxLotSize()) {
     value = Ammo.GetMaxLotSize();
   }
   if (value < 1) {
     value = 1;
   }
   Ammo.SetLotSize(CurAmmo);
   result = true;
   setVisible(false);
 } // GEN-LAST:event_btnOkayActionPerformed
 private void SetState() {
   spnTonnage.setModel(
       new javax.swing.SpinnerNumberModel(Ammo.GetLotSize(), 1, Ammo.GetMaxLotSize(), 1));
   setTitle("Setting ammo tonnage.");
 }