Package Summary  Overview Summary

class:Panel [NONE]

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
Applet

public class Panel
extends Container
implements Accessible
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:
1.0
See Also:
FlowLayout, Serialized Form

constructor:Panel() [NONE]

  • Panel

    public Panel()
    Creates a new panel using the default layout manager. The default layout manager for all panels is the FlowLayout class.
  • constructor:Panel(java.awt.LayoutManager) [NONE]

    Panel

    public Panel​(LayoutManager layout)
    Creates a new panel with the specified layout manager.
    Parameters:
    layout - the layout manager for this panel.
    Since:
    1.1

    method:addNotify() [NONE]

  • 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
    See Also:
    Component.isDisplayable(), Container.removeNotify()
  • method:getAccessibleContext() [NONE]

    getAccessibleContext

    public AccessibleContext getAccessibleContext()
    Gets the AccessibleContext associated with this Panel. For panels, the AccessibleContext takes the form of an AccessibleAWTPanel. A new AccessibleAWTPanel instance is created if necessary.
    Specified by:
    getAccessibleContext in interface Accessible
    Overrides:
    getAccessibleContext in class Component
    Returns:
    an AccessibleAWTPanel that serves as the AccessibleContext of this Panel
    Since:
    1.3

    © 2020 Oracle Corporation and/or its affiliates