Where Am I? Class Hierarchy (JDK) All Classes (JDK) All Fields and Methods (JDK)

Class java.awt.Panel

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

public class Panel
extends Container
super class of:
Applet

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.

Since:
JDK1.0
See Also:
FlowLayout

Constructor Index

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

Method Index

addNotify()
Creates the Panel's peer.

Constructors

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

Panel
 public Panel(LayoutManager layout)
Creates a new panel with the specified layout manager.

Parameters:
layout - the layout manager for this panel.

Methods

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

Where Am I? Class Hierarchy (JDK) All Classes (JDK) All Fields and Methods (JDK)