|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
public class JPanel
An instance of JPanel can be added to a panel, frame etc
| Nested Class Summary | |
|---|---|
protected class |
JPanel.AccessibleJPanel
Provides accessibility support for JPanel. |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JPanel()
Creates a new panel with a new instance of 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 UIManager) for the current look and feel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPanel()
FlowLayout as the
layout manager and double-buffering enabled.
public JPanel(boolean isDoubleBuffered)
FlowLayout.
isDoubleBuffered - a flag that controls whether or not
double-buffering is enabled.public JPanel(LayoutManager layout)
layout - the layout manager (null permitted).
public JPanel(LayoutManager layout,
boolean isDoubleBuffered)
layout - the layout manager (null permitted).isDoubleBuffered - a flag that controls whether or not
double-buffering is enabled.| Method Detail |
|---|
public String getUIClassID()
"PanelUI" in this case) used to
determine the class name for a UI delegate that can provide the look and
feel for a JPanel.
getUIClassID in class JComponent"PanelUI".JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void setUI(PanelUI ui)
JPanel component.
ui - the UI delegate.getUI()public PanelUI getUI()
JPanel component.
setUI(PanelUI)public void updateUI()
UIManager) for the current look and feel.
updateUI in class JComponentpublic AccessibleContext getAccessibleContext()
JPanel component.
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponentJPanel.AccessibleJPanel).protected String paramString()
JPanel.
paramString in class JComponentJPanel
(never null).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||