To display this property editor, choose the border
property in the Inspector when a component is selected. Click the ellipses button. The property editor tries to initialize its values to match the value of the current border
border
property setting will be generated. Choose one of the following settings:
Modify class instance variable
Replaces the initializer for the existing border variable.
Create a class instance variable
Creates a new Border
as a class instance variable. The property setting will be set to this new variable. Any existing variable that the property setting used to point to remains undisturbed (but unused). You need to select this option if you will be creating a border for use as an InnerBorder
of a CompoundBorder
.
Do not generate a class instance variable
Does not create the border
property as a class instance variable, but instead uses the border
expression directly as the parameter to the border
property setting.
Choose one of the following types:
EmptyBorder
is created. The Bevel Style setting is not available. The following Options are available.
CompoundBorder
is generated consisting of the specified Border
as the OuterBorder
and an EmptyBorder
as the InnerBorder
. The insets are applied to the inner EmptyBorder
. The exception to this is when a title is also specified. When a title and insets are specified for a Border Type that does not use insets, a CompoundBorder
consisting of a TitledBorder
that uses the specified border as the OuterBorder
and an EmptyBorder
that utilizes the insets as the InnerBorder
is created.
Enter the width, in pixels, for the border"s top, bottom, left and right sides.
Choose one of the following options:
Lowered
The border appears to be sunk into the design surface.
Raised
The border appears to be raised away from the design surface.
To change Options settings, click in the right of the value field and choose a setting from the drop-down list. If you choose <custom> when the Option is a color value, the Color property editor is displayed.
Border Type | Available Options |
---|---|
Empty | Title Color |
Etched | Highlight, Shadow |
Matte (Color) | Color |
Line | Line Color, Line Width |
Bevel | Highlight Inner, Highlight Outer, Shadow Inner, Shadow Outer |
Matte (Icon) | None |
Border
. When a title is specified, a TitledBorder
will be generated. A TitledBorder
consists of a title overlaying the specified Border
. The other fields of the property editor describe this Border
.
The Icon drop-down list displays variables of type Icon and all image files that are in the current project.
CompoundBorders
. Customized borders are borders you have previously created using the Border property editor. All of the other information supplied to the property editor is used to create the OuterBorder
object of the CompoundBorder
.
Panel
when you click on it. The background color of the Panel
is toggled with each mouse click so you can see the real estate occupied by EmptyBorder
s if desired.