You can also type the absolute path name of the JAR file in the Select JAR file text box. Press Return or Enter to load the JAR file.
When you click Add, a shadow class (which allows JWS to manipulate the bean) is generated and automatically inserted into the JAR file. The JAR file is then added to the Imported Components directory.
To manually create a
shadow class:
You might try choosing the shadow class that corresponds to the parent class of the class being wrapped.
When you write a custom component and add new shadow classes or group
classes, all the standard component attributes are available (for
example, foreground
, background
colors
, font
), since a new shadow or group
class extends an already existing class. Any new attributes specific
to the custom component are also available through the attribute
editor.
You must define attributes for custom shadows or groups in the
constructor method of the class. A source code example, LabelShadow
(the shadow class
for labels), shows you how to write a shadow class and demonstrates
how attributes are defined. Look for the attributes.add
calls. LabelShadow
extends ComponentShadow
,
and so inherits all of the attributes of ComponentShadow
.
GUI builder group and shadow classes are discussed in What Are Groups and Shadows? and
More on Groups and Shadows.
Class Name
. Full package and class name of the component
Icon
(Palette only). The path name of the file
that contains the image displayed in the palette.
The path to the image can be a URL (file:/pathname)
or, preferably, a relative path name (relative to the
codebase of the applet). If the applet's .class
file and
image files are in the same directory, only the simple file name is
required.
Tool Tip Label
. Label that
appears in the component palette when the pointer is over the
component's button
Footer Label
. Label that
appears in the footer area of Java WorkShop window
To see what component classes are currently in use in your project, choose Class Usage Report from the GUI menu for a list of class names and their sources.
For an example of how a component is imported, see the card file example, Card File - Examples of Creating an Application.
See also: