All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.editor.ColorButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----jp.kyasu.awt.KComponent
                   |
                   +----jp.kyasu.awt.Label
                           |
                           +----jp.kyasu.awt.AbstractButton
                                   |
                                   +----jp.kyasu.awt.Button
                                           |
                                           +----jp.kyasu.editor.ColorButton

public class ColorButton
extends Button
The ColorButton allows a user to select a color.

Version:
11 Jun 1998
Author:
Kazuki YASUMATSU

Constructor Index

 o ColorButton()
Constructs a color button with the null default color.
 o ColorButton(Color)
Constructs a color button with the specified default color.

Method Index

 o addItemListener(ItemListener)
Add a listener to recieve item events when the state of an item changes.
 o getColor()
Returns the selected color.
 o main(String[])
Executes the examples.
 o removeItemListener(ItemListener)
Removes an item listener.

Constructors

 o ColorButton
 public ColorButton()
Constructs a color button with the null default color.

 o ColorButton
 public ColorButton(Color defaultColor)
Constructs a color button with the specified default color.

Methods

 o getColor
 public Color getColor()
Returns the selected color.

 o addItemListener
 public void addItemListener(ItemListener l)
Add a listener to recieve item events when the state of an item changes.

See Also:
ItemSelectable
 o removeItemListener
 public void removeItemListener(ItemListener l)
Removes an item listener.

See Also:
ItemSelectable
 o main
 public static void main(String args[])
Executes the examples.


All Packages  Class Hierarchy  This Package  Previous  Next  Index