All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class datarep.common.GroupBoxPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----datarep.common.GroupBoxPanel

public class GroupBoxPanel
extends Container
implements AdjustmentListener
GroupBoxPanel is a convienent class for display. It draws a box (optionally, with text) around the one component (which could be a layout) which it can hold. This can be used to indicate a related set of parts.

Version:
1.2
Author:
Data Representations, Inc.

Constructor Index

 o GroupBoxPanel()
creates a new GroupBoxPanel with no text, using the flowLayout manager.
 o GroupBoxPanel(String)
creates a new GroupBoxPanel with the specified text and the flowLayout manager.
 o GroupBoxPanel(String, LayoutManager)
creates a new GroupBoxPanel with the specified text and layout manager.

Method Index

 o addNotify()
 o adjustmentValueChanged(AdjustmentEvent)
 o getInsets()
 o getPreferredSize()
 o getText()
 o main(String[])
a simple test program for GroupBoxPanel
 o paint(Graphics)
draws the GroupBoxPanel
 o removeNotify()
 o setText(String)
sets the text of the GroupBoxPanel
 o validate()

Constructors

 o GroupBoxPanel
 public GroupBoxPanel()
creates a new GroupBoxPanel with no text, using the flowLayout manager.

 o GroupBoxPanel
 public GroupBoxPanel(String text)
creates a new GroupBoxPanel with the specified text and the flowLayout manager.

 o GroupBoxPanel
 public GroupBoxPanel(String text,
                      LayoutManager layout)
creates a new GroupBoxPanel with the specified text and layout manager.

Methods

 o setText
 public void setText(String text)
sets the text of the GroupBoxPanel

 o getText
 public String getText()
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o paint
 public void paint(Graphics g)
draws the GroupBoxPanel

Overrides:
paint in class Container
 o getInsets
 public Insets getInsets()
Overrides:
getInsets in class Container
 o addNotify
 public void addNotify()
Overrides:
addNotify in class Container
 o removeNotify
 public void removeNotify()
Overrides:
removeNotify in class Container
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o validate
 public void validate()
Overrides:
validate in class Container
 o main
 public static void main(String args[])
a simple test program for GroupBoxPanel


All Packages  Class Hierarchy  This Package  Previous  Next  Index