Sun BDK Sample

Objectives
To demonstrate JavaBeans architecture.

Time Required
30 minutes to become familiar with the BeanBox interface.

Before You Begin
To add sample project to your workspace:

  1. Select Quick Start from the File menu.
  2. From the left-hand list, select Feature.
  3. From the right-hand list, select Add Feature.
  4. From the dialog that opens, select Sun BDK Examples.  If Sun BDK Examples does not appear in the list, it means that the project has previously been added to your workspace.

The Sun BDK Examples project will be added to your workspace, and the source code will be compiled.

Description
The Sun BDK Examples project contains the BeanBox and example beans that Sun provides with the Beans Development Kit (BDK).  The BeanBox is an application that you can use to test and demonstrate JavaBeans, either the sample beans provided or ones you create yourself. In this way, the BeanBox is similar to the VisualAge for Java Visual Composition Editor.  However, the BeanBox sample is not designed to be a development tool, and does not have the extent of functionality that the Visual Composition Editor has.

The BeanBox application has three windows:

Running the Sample
To run the BeanBox sample:

  1. Select the class sun.beanbox.BeanBoxFrame in the Sun BDK Examples project.
  2. From the class' pop-up menu, select Run, Run main.
  3. The three windows described above will appear.
  4. To drop a bean on the composition window, select it from the list and then click on the composition window. 
  5. The bean's properties will appear in the properties window, where you can change their settings.

Doing More with the Sample
Other things you can do in the BeanBox include the following tasks:

For more information on what you can do with the BeanBox sample, see Sun's description of it at the following URL:

http://java.sun.com/beans/software/beanbox.html

For detailed descriptions of the example beans provided in the BDK Examples, see Sun's information at the following URL:

http://java.sun.com/beans/software/examples.html