All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Widgets.BorderPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----Acme.Widgets.BorderPanel

public class BorderPanel
extends Panel
A panel that adds a border around the contents.

Sample usage:


 BorderPanel p = new BorderPanel( BorderPanel.IN );
 

Fetch the software.
Fetch the entire Acme package.


Variable Index

 o IN
 o LOWERED
 o OUT
 o RAISED
 o SOLID

Constructor Index

 o BorderPanel(int)
Constructor, default thickness for this type.
 o BorderPanel(int, int)
Constructor.

Method Index

 o add(Component)
 o add(Component, int)
 o add(String, Component)
 o countComponents()
 o getComponent(int)
 o getLayout()
 o insets(int)
 o paint(Graphics)
Paint the border.
 o remove(Component)
 o removeAll()
 o setLayout(LayoutManager)

Variables

 o SOLID
 public static final int SOLID
 o RAISED
 public static final int RAISED
 o LOWERED
 public static final int LOWERED
 o IN
 public static final int IN
 o OUT
 public static final int OUT

Constructors

 o BorderPanel
 public BorderPanel(int type,
                    int thickness)
Constructor.

 o BorderPanel
 public BorderPanel(int type)
Constructor, default thickness for this type.

Methods

 o paint
 public void paint(Graphics graphics)
Paint the border.

Overrides:
paint in class Container
 o countComponents
 public int countComponents()
Overrides:
countComponents in class Container
 o getComponent
 public Component getComponent(int n)
Overrides:
getComponent in class Container
 o insets
 public Insets insets(int n)
 o add
 public Component add(Component comp)
Overrides:
add in class Container
 o add
 public Component add(Component comp,
                      int pos)
Overrides:
add in class Container
 o add
 public Component add(String name,
                      Component comp)
Overrides:
add in class Container
 o remove
 public void remove(Component comp)
Overrides:
remove in class Container
 o removeAll
 public void removeAll()
Overrides:
removeAll in class Container
 o getLayout
 public LayoutManager getLayout()
Overrides:
getLayout in class Container
 o setLayout
 public void setLayout(LayoutManager mgr)
Overrides:
setLayout in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs