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.
java.awt.FlowLayout
| Modifier and Type | Class and Description |
|---|---|
| protected class | Panel.
This class implements accessibility support for the
|
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static int | |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | Panel(LayoutManager
the layout manager for this panel. layout)Creates a new panel with the specified layout manager. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv String | constructComponentName()
Overrides java. Construct a name for this component. |
| public AccessibleContext | Returns: an AccessibleAWTPanel that serves as the AccessibleContext of this PanelOverrides java. Implements javax. Gets the AccessibleContext associated with this Panel. |
| base | back to summary |
|---|---|
| private static final String base | |
| nameCounter | back to summary |
|---|---|
| private static int nameCounter | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.1 for interoperability. | |
| Panel | back to summary |
|---|---|
| public Panel() Creates a new panel using the default layout manager.
The default layout manager for all panels is the
| |
| Panel | back to summary |
|---|---|
| public Panel(LayoutManager layout) Creates a new panel with the specified layout manager.
| |
| addNotify | back to summary |
|---|---|
| public void addNotify() Overrides java. Creates the Panel's peer. The peer allows you to modify the appearance of the panel without changing its functionality. | |
| constructComponentName | back to summary |
|---|---|
| pack-priv String constructComponentName() Overrides java. Construct a name for this component. Called by getName() when the name is null. | |
| getAccessibleContext | back to summary |
|---|---|
| public AccessibleContext getAccessibleContext() Overrides java. Implements javax. 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.
| |
Panel class. It provides an implementation of the
Java Accessibility API appropriate to panel user-interface elements.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides java. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public AccessibleRole | Returns: an instance of AccessibleRole describing the role of the objectOverrides java. Get the role of this object. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.3 for interoperability. | |
| AccessibleAWTPanel | back to summary |
|---|---|
| protected AccessibleAWTPanel() Constructs an | |
| getAccessibleRole | back to summary |
|---|---|
| public AccessibleRole getAccessibleRole() Overrides java. Get the role of this object.
| |