Table of Contents

Shape and Corner Radii

Some of the controls in the jControls NF4 library, e.g. jButton, jLamp, and more, have a Shape and CornerRadii property, providing one the ability to control the overall shape of the control.

Shape Property

The Shape property can be used to give a control either a rectangular or round shape. Although the same could technically be accomplished with the CornerRadii property, using the Shape property ensures the shape is retained even when the control is resized.

CornerRadii Property

When the control's Shape property is Rectangular, the CornerRadii property can be used to independently add a radius of curvature to each corner. This can be used to give the control a rounded rectangle shape, or even used to make it appear like a tab.