Constructors
Name | Description |
---|---|
Container() | Constructs a new Container. |
Methods
Name | Description |
---|---|
add(Component) | Adds the specified component to the end of this container. |
add(Component, int) | Adds the specified component to this container at the given position. |
add(Component, Object) | Adds the specified component to the end of this container. |
add(Component, Object, int) | Adds the specified component to this container with the specified constraints at the specified index. |
add(String, Component) | Adds the specified component to this container. |
addContainerListener(ContainerListener) | Adds the specified container listener to receive container events from this container. |
addImpl(Component, Object, int) | Adds the specified component to this container at the specified index. |
addNotify() | Notifies the container to create a peer. |
countComponents() | Deprecated. |
deliverEvent(Event) | Deprecated. |
doLayout() | Causes this container to lay out its components. |
getAlignmentX() | Returns the alignment along the x axis. |
getAlignmentY() | Returns the alignment along the y axis. |
getComponent(int) | Gets the nth component in this container. |
getComponentAt(int, int) | Locates the component that contains the x,y position. |
getComponentAt(Point) | Gets the component that contains the specified point. |
getComponentCount() | Gets the number of components in this panel. |
getComponents() | Gets all the components in this container. |
getInsets() | Determines the insets of this container, which indicate the size of the container's border. |
getLayout() | Gets the layout manager for this container. |
getMaximumSize() | Returns the maximum size of this container. |
getMinimumSize() | Returns the minimum size of this container. |
getPreferredSize() | Returns the preferred size of this container. |
insets() | Deprecated. |
invalidate() | Invalidates the container. |
isAncestorOf(Component) | Checks if the component is contained in the component hierarchy of this container. |
layout() | Deprecated. |
list(PrintStream, int) | Prints a listing of this container to the specified output stream. |
list(PrintWriter, int) | Prints out a list, starting at the specified indention, to the specified print writer. |
locate(int, int) | Deprecated. |
minimumSize() | Deprecated. |
paint(Graphics) | Paints the container. |
paintComponents(Graphics) | Paints each of the components in this container. |
paramString() | Returns the parameter string representing the state of this container. |
preferredSize() | Deprecated. |
print(Graphics) | Prints the container. |
printComponents(Graphics) | Prints each of the components in this container. |
processContainerEvent(ContainerEvent) | Processes container events occurring on this container by dispatching them to any registered ContainerListener objects. |
processEvent(AWTEvent) | Processes events on this container. |
remove(Component) | Removes the specified component from this container. |
remove(int) | Removes the component, specified by index, from this container. |
removeAll() | Removes all the components from this container. |
removeContainerListener(ContainerListener) | Removes the specified container listener so it no longer receives container events from this container. |
removeNotify() | Notifies this container and all of its subcomponents to remove their peers. |
setLayout(LayoutManager) | Sets the layout manager for this container. |
validate() | Validates this container and all of its subcomponents. |
validateTree() | Recursively descends the container tree and recomputes the layout for any subtrees marked as needing it (those marked as invalid). |