TOC PREV NEXT INDEX



View the finished application


Let's begin by viewing the completed tutorial so that you'll know what we are going to accomplish. In order for the email portion to work, you will first need to enter your SMTP mail server and your email address.

  1. In the IDE, choose 'Java Source Files' from the Project Tree.
  2. Double-click 'FinishedBankAccount.java'. This will open the Java Editor.
  3. Scroll Down about 3/4 of the file and find a set of lines which read:
email.setServer("smtp.somewhere.com");
email.setFrom("me@somewhere.com");
email.setTo("me@somewhere.com");
  1. change the SMTP server name and the email address in these three lines to your SMTP server and email address.
  2. Save and Exit the Java Editor using the File menu.
  3. Compile the Application by right clicking the 'FinishedBankAccount.java' icon and choosing Compile from the pop-up menu. The pop-up menu can also be shown by holding down shift while clicking the icon.
  4. Now choose 'Java Class Files' from the Project Tree.
  5. Double-click 'FinishedBankAccount.class' and press the 'Run' button in the Class Viewer.

The bank account application is very simple to use. Press the Deposit or Withdrawal buttons to add or subtract money from the account. The Print and Email Receipt buttons will send an account statement to your printer or email account.

When you are finished, close the finished bank account program and the Class Viewer.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX