|Lesson 4||Beanbox Test Container |
|Objective||Learn the benefits of the BeanBox test container. |
Benefits of the Beanbox Test Container
To run the BeanBox, execute the run.bat file, which is located in the beanbox directory beneath the main Bdk directory.
The run.bat file makes use of the Java interpreter provided with the JDK.
The Java interpreter is located in the JDK bin directory beneath the main jdk directory.
This directory must be included in your system path in order for the run.bat file to function properly.
The BeanBox user interface
Raising and Handling of Events
An event is something of importance that happens at a specific point in time. An event can take place due to a user action such as
- a mouse click or
- when the user clicks a mouse button,
an event takes place. Events can also be initiated by other means.
Imagine the heating system in your house. It contains a thermostat that sets the desired comfort temperature, keeps track of the current ambient temperature, and notifies the boiler when its services are required.
If the thermostat is set to keep the room at 73 degrees Fahrenheit, it will notify the boiler to start producing heat if the temperature drops below that threshold.
Components will send notifications to other objects when an event takes place in which those objects have expressed an interest.