borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

GroupBox component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Panel
                           +----borland.jbcl.control.GroupBox

About the GroupBox component

Variables  Constructors  Properties  Methods  Event Listeners

Implements MenuContainer, ImageObserver, Serializable

A group box is a container that organizes controls into a group. A group box is a rectangular box with an optional label.

The label of the group box is used to describe the collective purpose of the controls contained in the group box. For example, a group labeled Alignment could contain option buttons labeled Left, Right, and Center.


GroupBox variables

Variables implemented in java.awt.Component

GroupBox constructors

GroupBox properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

GroupBox methods

Methods implemented in this class

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Panel

Methods implemented in java.lang.Object

GroupBox event listeners


GroupBox constructors

GroupBox()

  public GroupBox()
Constructs a group box with no label.

GroupBox(java.lang.String)

  public GroupBox(java.lang.String label)
Constructs a group box, showing the specified label in the upper left.

Parameters:

label
The specified label.


GroupBox properties

label

 public String getLabel()
 public void setLabel(java.lang.String label)
The label is the visible name of the group box, shown in the upper left of the group box.


GroupBox methods

insets()

  public Insets insets()
Returns the height of the current font as the top, left, bottom, and right arguments to awt.Insets. The insets are the distance between the lines forming the box and the controls surrounded by the box.

Overrides: java.awt.Container.insets()

paint(java.awt.Graphics)

  public void paint(java.awt.Graphics g)
Paints or repaints the group box.

Overrides: java.awt.Container.paint(Graphics)


GroupBox event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)