Package java.awt Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class Panel

Constructors , Methods

public  class  java.awt.Panel
    extends  java.awt.Container  
{
        // Constructors
    public Panel();	

        // Methods
    public void addNotify();	
}

A panel is the simplest container class. It provides space into which an application can attach any other component, including other panels.

The AWT sends the panel all mouse, keyboard, and focus events that occur over it.

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


Constructors


Panel

public Panel() 

Creates a new panel. The default layout for a panel is FlowLayout .


Methods


addNotify

public void addNotify() 

This method calls the createPanel method of this object's toolkit in order to create a PanelPeer for this panel. This peer allows the application to change the look of a panel without changing its functionality.

Most applications do not call this method directly.

Overrides:

addNotify in class Container .



Top© 1996 Sun Microsystems, Inc. All rights reserved.