|
|
|
|||||||||
|
Starting and Using the BeanBox
This section gives you a brief, introductory look at
the BeanBox and it's basic operation.
The
See the BDK files When started, the BeanBox displays three windows: The ToolBox, the BeanBox window, and the Properties sheet. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. Here are brief descriptions of each window.
Adding a Bean to the ToolBox
When the BeanBox is started, it automatically loads the ToolBox with
all the Beans it finds within the JAR files
contained in the
Clicking on a Bean name within the ToolBox chooses that Bean for
placement within the BeanBox. To drop a
Note the change in the Properties sheet when you put
the
After dropping a
| |||||||||
|
The Properties sheet displays each property's name and its current value. Values are displayed in an editable text field (strings and numbers), a choice menu (booleans), or as painted values (colors and fonts). Each property has an associated property editor. Clicking on a property within the Properties sheet activates the property's editor. Properties displayed in text fields or choice menus are edited within the Properties sheet. Because editing their values requires a more sophisticated user interface,
ColorandFontproperty types use a custom property editor. When you click on a color or font property a separate panel will pop up to do the editing. Try clicking on each of theJellyBeanproperties.
You can save the state of a Bean that your are customizing, and restore the Bean and its saved state at a later time. The BeanBox uses Java Object Serialization to save and restore Beans and their state. The following steps demonstrate how to save and restore a Bean:
- Drop a
JellyBeanon the BeanBox.- Change the
colorproperty to anything you want.- Select the File|Save menu item. A file browser will pop up; use it to save the Bean to a file.
- Select the File|Clear menu item.
- Select the File|Load menu item. The file browser will again pop up; use it to retrieve the serialized Bean. The
JellyBeanwill be the color you chose.