borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

ColorChooserDialog class

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Window
                           +----java.awt.Dialog
                                   +----borland.jbcl.control.ButtonDialog
                                           +----borland.jbcl.control.ColorChooserDialog

About the ColorChooserDialog class

Variables  Constructors  Properties  Methods  Event Listeners

Implements MenuContainer, ActionListener, KeyListener, ImageObserver, Serializable, EventListener

This component is a dialog box that contains controls for specifying a color. This component is the same as the ColorChooserPanel component, but this component is used in the UI Designer, whereas ColorChooserPanel is designed to be added to your own custom dialog or frame.

You need to be able to instantiate a Java Bean without setting any of its properties; you need a default constructor. ColorChooserDialog needs a parent when it is instantiated, so it can't be a Java Bean. super() must be called first.

After dropping a ColorChooserPanel onto the Component Tree or UI Designer, you generally need to set the frame property to "this". Otherwise, the dialog will not appear.


ColorChooserDialog variables

Variables implemented in this class

Variables implemented in borland.jbcl.control.ButtonDialog

Variables implemented in java.awt.Component

ColorChooserDialog constructors

ColorChooserDialog properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.control.ButtonDialog

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.awt.Dialog

Properties implemented in java.awt.Window

Properties implemented in java.lang.Object

ColorChooserDialog methods

Methods implemented in borland.jbcl.control.ButtonDialog

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Dialog

Methods implemented in java.awt.Window

Methods implemented in java.lang.Object

ColorChooserDialog event listeners


ColorChooserDialog variables

panel

  protected ColorChooserPanel panel

The ColorChooserPanel object to show in this dialog box. Used to control the color of the panel.


ColorChooserDialog constructors

ColorChooserDialog(java.awt.Frame)

  public ColorChooserDialog(java.awt.Frame frame)
Constructs a color chooser dialog box with the specified parent frame.

Parameters:

frame
The parent frame for the dialog box.

See also: java.awt.Frame

ColorChooserDialog(java.awt.Frame, java.lang.String)

  public ColorChooserDialog(java.awt.Frame frame, java.lang.String title)
Constructs a color chooser dialog box with the specified parent frame.

Parameters:

frame
The parent frame for the dialog box.
title
The text that appears in the title bar of the dialog box.

See also: java.awt.Frame

ColorChooserDialog(java.awt.Frame, java.lang.String, java.awt.Color)

  public ColorChooserDialog(java.awt.Frame frame, java.lang.String title, java.awt.Color value)
Constructs a color chooser dialog box.

Parameters:

frame
The parent frame for the dialog box.
title
The text that appears in the title bar of the dialog box.
value
The initially selected color.

See also: java.awt.Frame, java.lang.String, java.awt.Color


ColorChooserDialog properties

value

 public Color getValue()
 public void setValue(java.awt.Color value)
The value of the color currently selected in the dialog box.

See also: java.awt.Color


ColorChooserDialog event listeners

This class is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)

window

 public synchronized void addWindowListener(java.awt.event.WindowListener l)
 public synchronized void removeWindowListener(java.awt.event.WindowListener l)