Package java.awt |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
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.
public Panel()Creates a new panel. The default layout for a panel is FlowLayout .
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 .