The Bean Developer Kit (BDK)
The Bean Developer Kit (BDK), available from the Java Soft site, is a simple example of a tool that enables you to create, configure, and connect a set of Beans. There is also a set of sample Beans with their source code. This section provides-step-by-step instructions for installing and using this tool.
‘In this chapter, instructions are provided for a Windows 95/98/NT environment. The procedure» for a.UNIX platform are similar, some of the commands arc different.
Installing the BDK
The JDK must be installed on your machine for the DDKto work. Confirm that the JOK tools are accessible from your environment. The’BDK can then be downloaded from the Java Soft site’ (http://java.sun.com).Itis packaged as one file that is a self-extracting archive. Follow the instructions to install it on tour machine.
Starting the BDK
To start the DDK, follow these steps:
1. Change to the directory c:bdkbeanbox.
2. Execute the batcl(·file called run.bat. This causes the BDK to display the three windows shown Toolbox lists allof the different Beans that have been included with the BDK. Bean Box provides an area to layout and connect the Beans selected from the Too Box. Properties .
Using the BDK
This section describes how to create an application by using some of the Beans
provided with the BDK. First, the Molecule Bean displays at three-dimensional view of a molecule. It may be configured to present one of the following molecules: hy ironical. acid, benzene, counterintelligence, anticyclone, ethane, or water. This compos net also has methods that allow the molecule to be rotated in space along its X or Y axis. -Second, the Our Bean provides a push-button functionality. We will have one.
Create and Configure an Instance of the ,Molecule Bean
Follow these steps to create o,.md configu.re an instance of the Molecule Bean.
1. Position the cursor on ‘the Tool Box entry labeled Molecule and click the left
mouse button. You should see the cursor change to a cross.
2. Move the cursor to the Bean Box display area and click the left mouse button in
approximately the area where you wish the Bean to be displayed. You should
see a rectangular region appear that contains a display of a molecule. This
areas surrounded by a hatched. border, indicating that it is currently selected.
3. You can preposition the Molecule Bean by positioning the cursor over one of the
hatched borders and dragging the Bean.
4. You can change the molecule that is displayed by changing the selection in the
Properties window. Notice that the Bean display changes immediately when
you change the selected molecule.