Class GroupPanel

Class GroupPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----GroupPanel

class GroupPanel
extends Panel
Create a panel that allows you to organize related components on a panel surrounded by a raised border. It also allows you to specify a group title.

Constructor Index

 o GroupPanel(String)
Create a new object and assign the title string

Method Index

 o addNotify()
 o insets()
Create new insets
 o paint(Graphics)
Paint the border around the group param g the graphics object
 o setBackground(Color)
Set the background color

Constructors

 o GroupPanel
  public GroupPanel(String title)
Create a new object and assign the title string

Methods

 o setBackground
  public synchronized void setBackground(Color c)
Set the background color
Parameters:
c - the background color
Overrides:
setBackground in class Component
 o addNotify
  public void addNotify()
Overrides:
addNotify in class Panel
 o insets
  public Insets insets()
Create new insets
Overrides:
insets in class Container
 o paint
  public void paint(Graphics g)
Paint the border around the group param g the graphics object
Overrides:
paint in class Component