java.lang.Objectjava.awt.Component
java.awt.Container
public class Container extends Component
| Constructor Summary | |
|---|---|
Container()
Constructs a new Container.  | 
|
| Method Summary | |
|---|---|
 Component | 
add(Component comp)
Appends the specified component to the end of this container.  | 
 Component | 
getComponent(int n)
Gets the nth component in this container.  | 
 Component | 
getComponentAt(int x,
               int y)
Locates the component that contains the x,y position.  | 
 Component | 
getComponentAt(Point p)
Gets the component that contains the specified point.  | 
 int | 
getComponentCount()
Gets the number of components in this panel.  | 
 Component[] | 
getComponents()
Gets all the components in this container.  | 
 int | 
getComponentZOrder(Component comp)
Returns the z-order index of the component inside the container.  | 
 void | 
remove(Component comp)
Removes the specified component from this container.  | 
 void | 
removeAll()
Removes all the components from this container.  | 
 void | 
setComponentZOrder(Component comp,
                   int index)
Moves the specified component to the specified z-order index in the container.  | 
 void | 
setFont(Font f)
Sets the font of this container.  |