Class java.awt.Panel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.Panel

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

public class Panel
extends Container
Panel is the simplest container class. A panel provides space in which an application can attach any other component, including other panels.

The default layout manager for a panel is the FlowLayout layout manager.

Version:
1.20, 07/01/98
Author:
Sami Shaio
Since:
JDK1.0
See Also:
FlowLayout

Constructor Index

 o java.awt.Panel()
Creates a new panel using the default layout manager.
 o java.awt.Panel(LayoutManager)
Creates a new panel with the specified layout manager.

Method Index

 o addNotify()
Creates the Panel's peer.

Constructors

 o Panel
public Panel()
Creates a new panel using the default layout manager. The default layout manager for all panels is the FlowLayout class.

Since:
JDK1.0
 o Panel
public Panel(LayoutManager layout)
Creates a new panel with the specified layout manager.

Parameters:
layout - the layout manager for this panel.
Since:
JDK1.1

Methods

 o addNotify
public void addNotify()
Creates the Panel's peer. The peer allows you to modify the appearance of the panel without changing its functionality.

Overrides:
addNotify in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index