Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.Container

Availability: JDK 1.0

public abstract class Container extends Component {
   // Protected Constructor
      protected Container();
   // Public Instance Methods
      public Component add(Component comp);
      public Component add(String name, Component comp);
      public Component add(Component comp, int index);
1.1  public void add(Component comp, Object constraints);
1.1  public void add(Component comp, Object constraints, int index);
1.1  public void addContainerListener(ContainerListener l);
      public void addNotify();  // Overrides Component.addNotify()
#    public int countComponents();
#    public void deliverEvent(Event e);  // Overrides Component.deliverEvent()
1.1  public void doLayout();  // Overrides Component.doLayout()
1.1  public float getAlignmentX();  // Overrides Component.getAlignmentX()
1.1  public float getAlignmentY();  // Overrides Component.getAlignmentY()
      public Component getComponent(int n);
1.1  public Component getComponentAt(int x, int y);  // Overrides Component.getComponentAt()
1.1  public Component getComponentAt(Point p);  // Overrides Component.getComponentAt()
1.1  public int getComponentCount();
      public Component[] getComponents();
1.1  public Insets getInsets();
      public LayoutManager getLayout();
1.1  public Dimension getMaximumSize();  // Overrides Component.getMaximumSize()
1.1  public Dimension getMinimumSize();  // Overrides Component.getMinimumSize()
1.1  public Dimension getPreferredSize();  // Overrides Component.getPreferredSize()
#    public Insets insets();
1.1  public void invalidate();  // Overrides Component.invalidate()
1.1  public boolean isAncestorOf(Component c);
#    public void layout();  // Overrides Component.layout()
      public void list(PrintStream out, int indent);  // Overrides Component.list()
1.1  public void list(PrintWriter out, int indent);  // Overrides Component.list()
#    public Component locate(int x, int y);  // Overrides Component.locate()
#    public Dimension minimumSize();  // Overrides Component.minimumSize()
1.1  public void paint(Graphics g);  // Overrides Component.paint()
      public void paintComponents(Graphics g);
#    public Dimension preferredSize();  // Overrides Component.preferredSize()
1.1  public void print(Graphics g);  // Overrides Component.print()
      public void printComponents(Graphics g);
1.1  public void remove(int index);
      public void remove(Component comp);
      public void removeAll();
1.1  public void removeContainerListener(ContainerListener l);
      public void removeNotify();  // Overrides Component.removeNotify()
      public void setLayout(LayoutManager mgr);
      public void validate();  // Overrides Component.validate()
   // Protected Instance Methods
1.1  protected void addImpl(Component comp, Object constraints, int index);
      protected String paramString();  // Overrides Component.paramString()
1.1  protected void processContainerEvent(ContainerEvent e);
1.1  protected void processEvent(AWTEvent e);  // Overrides Component.processEvent()
1.1  protected void validateTree();
}
Extended By:
Panel, ScrollPane, Window.
Passed To:
BorderLayout.getLayoutAlignmentX(), BorderLayout.getLayoutAlignmentY(), BorderLayout.invalidateLayout(), BorderLayout.layoutContainer(), BorderLayout.maximumLayoutSize(), BorderLayout.minimumLayoutSize(), BorderLayout.preferredLayoutSize(), CardLayout.first(), CardLayout.getLayoutAlignmentX(), CardLayout.getLayoutAlignmentY(), CardLayout.invalidateLayout(), CardLayout.last(), CardLayout.layoutContainer(), CardLayout.maximumLayoutSize(), CardLayout.minimumLayoutSize(), CardLayout.next(), CardLayout.preferredLayoutSize(), CardLayout.previous(), CardLayout.show(), FlowLayout.layoutContainer(), FlowLayout.minimumLayoutSize(), FlowLayout.preferredLayoutSize(), GridBagLayout.ArrangeGrid(), GridBagLayout.getLayoutAlignmentX(), GridBagLayout.getLayoutAlignmentY(), GridBagLayout.GetLayoutInfo(), GridBagLayout.GetMinSize(), GridBagLayout.invalidateLayout(), GridBagLayout.layoutContainer(), GridBagLayout.maximumLayoutSize(), GridBagLayout.minimumLayoutSize(), GridBagLayout.preferredLayoutSize(), GridLayout.layoutContainer(), GridLayout.minimumLayoutSize(), GridLayout.preferredLayoutSize(), LayoutManager.layoutContainer(), LayoutManager.minimumLayoutSize(), LayoutManager.preferredLayoutSize(), LayoutManager2.getLayoutAlignmentX(), LayoutManager2.getLayoutAlignmentY(), LayoutManager2.invalidateLayout(), LayoutManager2.maximumLayoutSize().
Returned By:
Component.getParent(), ContainerEvent.getContainer(), Toolkit.getNativeContainer().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.