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.
FlowLayout, Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected class |
Panel.AccessibleAWTPanel This class implements accessibility support for the |
Container.AccessibleAWTContainer Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH public Panel()
Creates a new panel using the default layout manager. The default layout manager for all panels is the FlowLayout class.
public Panel(LayoutManager layout)
Creates a new panel with the specified layout manager.
layout - the layout manager for this panel.public void addNotify()
Creates the Panel's peer. The peer allows you to modify the appearance of the panel without changing its functionality.
addNotify in class Container
Component.isDisplayable(), Container.removeNotify()
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.
getAccessibleContext in interface Accessible
getAccessibleContext in class Component
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.