Where Am I? Class Hierarchy (JFC) All Classes (JFC)

Class com.sun.java.swing.JPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel

public class JPanel
extends JComponent
implements Accessible

JPanel is a generic lightweight container.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Constructor Index

JPanel()
Create a new JPanel with a double buffer and a flow layout
JPanel(boolean)
Create a new JPanel with a FlowLayout.
JPanel(LayoutManager)
Create a new buffered JPanel with a specific layout manager
JPanel(LayoutManager, boolean)
Creates a new JPanel

Method Index

getAccessibleContext()
Get the AccessibleContext associated with this JComponent
paintComponent(Graphics)
Overriden from JComponent, paint the backgroud if the component is opaque.
updateUI()
PENDING(jeff) - this should be done in BasicPanelUI

Constructors

JPanel
 public JPanel(LayoutManager layout,
               boolean isDoubleBuffered)
Creates a new JPanel

JPanel
 public JPanel(LayoutManager layout)
Create a new buffered JPanel with a specific layout manager

JPanel
 public JPanel(boolean isDoubleBuffered)
Create a new JPanel with a FlowLayout. If isDoubleBuffered is true, the JPanel will use a double buffer.

JPanel
 public JPanel()
Create a new JPanel with a double buffer and a flow layout


Methods

updateUI
 public void updateUI()
PENDING(jeff) - this should be done in BasicPanelUI

Overrides:
updateUI in class JComponent
paintComponent
 public void paintComponent(Graphics g)
Overriden from JComponent, paint the backgroud if the component is opaque. The color used is the one returned by getBackground() Override this method if you want to change how the JPanel paints its background

Overrides:
paintComponent in class JComponent
getAccessibleContext
 public AccessibleContext getAccessibleContext()
Get the AccessibleContext associated with this JComponent

Returns:
the AccessibleContext of this JComponent
Overrides:
getAccessibleContext in class JComponent

Where Am I? Class Hierarchy (JFC) All Classes (JFC)