Many of the jControls have additional properties to introduce lighting effects, namely Highlight
and Gloss
. Gloss
is unique to fills, but Highlight
can be applied to fills, strokes, and borders.
The Highlight property adds the effect of a light reflecting off of the top edge of the control (Top
), off the bottom edge of the control (Bottom
), or no reflection at all (None
). Used creatively it can add the appearance of depth to the control. For example, using Top
for a jButton's ReleasedAppearance
and Bottom
for the jButton's PressedAppearance
can create the effect of a button moving inward when pressed.
The Gloss
property creates the appearance of a glossy finish.