java.awt

Class Panel

public class Panel extends Container implements Accessible

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

Since: 1.0

See Also: FlowLayout

UNKNOWN: updated to 1.4

Nested Class Summary
protected classPanel.AccessibleAWTPanel
This class provides accessibility support for Panels, and is the runtime type returned by {@link #getAccessibleContext()}.
Constructor Summary
Panel()
Initializes a new instance of Panel that has a default layout manager of FlowLayout.
Panel(LayoutManager layoutManager)
Initializes a new instance of Panel with the specified layout manager.
Method Summary
voidaddNotify()
Notifies this object to create its native peer.
AccessibleContextgetAccessibleContext()
Gets the AccessibleContext associated with this panel, creating one if necessary.

Constructor Detail

Panel

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

Panel

public Panel(LayoutManager layoutManager)
Initializes a new instance of Panel with the specified layout manager.

Parameters: layoutManager the layout manager for this object

Since: 1.1

Method Detail

addNotify

public void addNotify()
Notifies this object to create its native peer.

See Also: Panel Panel

getAccessibleContext

public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with this panel, creating one if necessary. This always returns an instance of {@link AccessibleAWTPanel}.

Returns: the accessibility context of this panel

Since: 1.3