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

Class com.sun.java.swing.ColorChooserPanel

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

public abstract class ColorChooserPanel
extends JPanel

The is the abstract superclass for color choosers. If you want to add a new color chooser panel into a JColorChooser, sublclass this class.

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.


Variable Index

COLOR_PROPERTY
preferredSize

Constructor Index

ColorChooserPanel()

Method Index

fireColorPropertyChange(Color, Color)
getColor()
getPreferredSize()
If the preferredSize has been set to a non-null value just return it.
installChooserPanel()
This get called when the panel is added to the chooser.
setColor(Color)
uninstallChooserPanel()
This get called when the panel is removed from the chooser.

Variables

COLOR_PROPERTY
 public static final String COLOR_PROPERTY
preferredSize
 protected static final Dimension preferredSize

Constructors

ColorChooserPanel
 public ColorChooserPanel()

Methods

setColor
 public abstract void setColor(Color newColor)
getColor
 public abstract Color getColor()
fireColorPropertyChange
 protected void fireColorPropertyChange(Color oldColor,
                                        Color newColor)
getPreferredSize
 public Dimension getPreferredSize()
If the preferredSize has been set to a non-null value just return it.

Overrides:
getPreferredSize in class JComponent
installChooserPanel
 public void installChooserPanel()
This get called when the panel is added to the chooser.

uninstallChooserPanel
 public void uninstallChooserPanel()
This get called when the panel is removed from the chooser.


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