javax.swing
public class JPanel extends JComponent implements Accessible
| Nested Class Summary | |
|---|---|
| protected class | JPanel.AccessibleJPanel
Provides accessibility support for JPanel.
|
| Constructor Summary | |
|---|---|
| JPanel()
Creates a new panel with a new instance of {@link FlowLayout} as the
layout manager and double-buffering enabled. | |
| JPanel(boolean isDoubleBuffered)
Creates a new panel with double-buffering enabled or disabled as
specified. | |
| JPanel(LayoutManager layout)
Creates a new panel with the specified layout manager. | |
| JPanel(LayoutManager layout, boolean isDoubleBuffered)
Creates a new panel with the specified layout manager and
double-buffering.
| |
| Method Summary | |
|---|---|
| AccessibleContext | getAccessibleContext()
Returns the object that provides accessibility features for this
JPanel component.
|
| PanelUI | getUI()
Returns the UI delegate for the JPanel component.
|
| String | getUIClassID()
Returns the suffix ( "PanelUI" in this case) used to
determine the class name for a UI delegate that can provide the look and
feel for a JPanel.
|
| protected String | paramString()
Returns an implementation-dependent string describing the attributes of
this JPanel.
|
| void | setUI(PanelUI ui)
Sets the UI delegate for the JPanel component.
|
| void | updateUI()
Sets this panel's UI delegate to the default (obtained from the
{@link UIManager}) for the current look and feel. |
Parameters: isDoubleBuffered a flag that controls whether or not double-buffering is enabled.
Parameters: layout the layout manager (null permitted).
Parameters: layout the layout manager (null permitted). isDoubleBuffered a flag that controls whether or not
double-buffering is enabled.
JPanel component.
Returns: The accessible context (an instance of {@link AccessibleJPanel}).
JPanel component.
Returns: The UI delegate.
Since: 1.4
See Also: setUI
"PanelUI" in this case) used to
determine the class name for a UI delegate that can provide the look and
feel for a JPanel.
Returns: "PanelUI".
JPanel.
Returns: A string describing the attributes of this JPanel
(never null).
JPanel component.
Parameters: ui the UI delegate.
Since: 1.4
See Also: getUI