private void btnProcessOutgoingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProcessOutgoingActionPerformed

        try
        {
            int outgoingTicketNumber = Integer.parseInt(txtReceiptIDOut.getText());
            int outgoingExitTime = Integer.parseInt(txtExitTimeOut.getText());
        }
        catch(NumberFormatException nfe)
        {
                JOptionPane.showMessageDialog(frame, "Must enter a valid number.");
        }
        
        try
        {
            int outgoingTicketNumber = Integer.parseInt(txtReceiptIDOut.getText());
            int outgoingExitTime = Integer.parseInt(txtExitTimeOut.getText());
            pm1.endOutgoingVehicleTransaction(outgoingTicketNumber, outgoingExitTime);

            String[] oldTotals = pm1.readGarageTotalsGUI();
            String totalHours = oldTotals[0];
            String totalMoney = oldTotals[1];
            txtTotalHours.setText(totalHours);
            txtTotalMoney.setText(totalMoney);
        }
        catch(VehicleOutOfBoundsException vob)
        {
            JOptionPane.showMessageDialog(frame, vob.getMessage());
        }
        catch(NumberFormatException nfe)
        {
            JOptionPane.showMessageDialog(frame, "You must enter numbers only!");
        }
        catch(OutgoingProcessException ope)
        {
            JOptionPane.showMessageDialog(frame, ope.getMessage());
        }
        
    }//GEN-LAST:event_btnProcessOutgoingActionPerformed