Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Class Panel

java.lang.Object
|
+--java.awt.Component
   |
   +--java.awt.Container
      |
      +--java.awt.Panel

All Implemented Interfaces:

Accessible, ImageObserver, MenuContainer, Serializable


public class Panel

extends Container

implements Accessible

A panel is a simple container class. It's default layout is the FlowLayout manager.

Since:Authors:See Also:

Constructor Summary

Panel()

Initializes a new instance of Panel that has a default layout manager of FlowLayout.
Panel(java.awt.LayoutManager layoutManager)

Initializes a new instance of Panel with the specified layout manager.

Method Summary

voidaddNotify()

Notifies this object to create its native peer.
javax.accessibility.AccessibleContextgetAccessibleContext()

Gets the AccessibleContext associated with this panel, creating one if necessary.

Constructor Details

Panel

public Panel()

Initializes a new instance of Panel that has a default layout manager of FlowLayout.


Panel

public Panel(java.awt.LayoutManager layoutManager)

Initializes a new instance of Panel with the specified layout manager.

Since:Parameters:


Method Details

addNotify

public void addNotify()

Notifies this object to create its native peer.

See Also:


getAccessibleContext

public AccessibleContext getAccessibleContext()

Gets the AccessibleContext associated with this panel, creating one if necessary. This always returns an instance of AccessibleAWTPanel.

Since:Returns: