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
-
FramedPanel()
- Constructs a framed panel with no layout manager.
-
FramedPanel(LayoutManager)
- Constructs a framed panel.
-
getInsets()
- Get the panel's insets.
-
paint(Graphics)
- Draw the frame around the panel.
FramedPanel
FramedPanel(LayoutManager l)
- Constructs a framed panel.
- Parameters:
- l - layout manager for the panel.
FramedPanel
FramedPanel()
- Constructs a framed panel with no layout manager.
getInsets
public Insets getInsets()
- Get the panel's insets.
- Returns:
- the panel's insets, allowing for the frame.
- Overrides:
- getInsets in class Container
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