Attribute Editor

Use the Attribute Editor to change the attributes of Visual Java components, including frames, panels, and dialog boxes.

There three ways to activate the Attribute Editor:

Attributes vary from component to component. The following list describes the attributes common to many of the components. Some components have specialized attributes to fit their particular function; these special attributes are described in Visual Java Components.

anchor
Determines where the component is anchored within the cell.
background
Changes the color of the component's background. A color chooser dialog box is provided.
borderLabel
Adds a text label to the panel border.
borderRelief.
Adds a graphical border around the edge of the panel
borderWidth
Sets the width of borderRelief.
operations
Activates the Operations dialog box. Use the Operations dialog box to add callbacks to components. See Operations Dialog Box for details.
font
Changes font to use in the component (if it contains text). A font chooser dialog box is provided.
foreground
Color of the font. A color chooser dialog is provided.
insets
The distance (in pixels) from the left, right, top, or bottom edge of the cell. A dialog box is provided for you to use to enter the values.
enabled
Controls whether the component is initially in the enabled or disabled state.
name
The name of the component. All components are uniquely named by Visual Java when they are created. You can change the name using this attribute. Be sure that all component names within a group are unique.

You can quickly change the name of a selected component by typing in the Name field at the top of the Visual Java control panel.
text
Text displayed on the component.

You can quickly add or change the text of a selected component by typing it in the Text field at the top of the Visual Java control panel.


See also:

Visual Java Overview
The Visual Menu
Visual Java Components
Laying Out GUI Interfaces
Generating Java Source Code
Adding Operations (Filters and Actions)
Visual Java Runtime Classes
Creating Menus
Adding Custom Components and Windows
Using Groups and Shadows (Basic)
Using Groups and Shadows (Advanced)
Visual Java API Documentation
Visual Java Runtime Packages
Class Hierarchy
Index of all Fields and Methods