Class FramedPanel

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

public class FramedPanel
extends Panel
Class definition for a subclass of Panel that draws a frame around itself

Version:
$Revision: 1.4 $, $Date: 2000/10/12 14:07:50 $
Author:
John Cavanaugh

Constructor Index

 o FramedPanel()
Constructs a framed panel with no layout manager.
 o FramedPanel(LayoutManager)
Constructs a framed panel.

Method Index

 o getInsets()
Get the panel's insets.
 o paint(Graphics)
Draw the frame around the panel.

Constructors

 o FramedPanel
 FramedPanel(LayoutManager l)
Constructs a framed panel.

Parameters:
l - layout manager for the panel.
 o FramedPanel
 FramedPanel()
Constructs a framed panel with no layout manager.

Methods

 o getInsets
 public Insets getInsets()
Get the panel's insets.

Returns:
the panel's insets, allowing for the frame.
Overrides:
getInsets in class Container
 o paint
 public void paint(Graphics g)
Draw the frame around the panel.

Parameters:
g - the graphics context for the panel.
Overrides:
paint in class Container