Lab 7 - Events

Objectives

  1. Download the chapter 14 source code and import it into Eclipse.  This project contains the BeanShell library.
     
  2. For future reference to include the library in a project you do the following when creating the new project:
    1. Select the src folder as the source directory for the project and select the Next button
    2. Select the Library tab
    3. Select the Add Jar button
    4. Select bsh-core-1.2b7.jar
    5. Select Finish
       
  3. Try out EventTest. 
     
  4. Modify the code so that instead of having a trigger for the gate, you will have at least two levers which need to be pulled in a certain sequence to make the gate open.
     
  5. Email the modified files to me for grading.