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
-
ColorButton()
- Constructs a color button with the null default color.
-
ColorButton(Color)
- Constructs a color button with the specified default color.
-
addItemListener(ItemListener)
- Add a listener to recieve item events when the state of an item changes.
-
getColor()
- Returns the selected color.
-
main(String[])
- Executes the examples.
-
removeItemListener(ItemListener)
- Removes an item listener.
ColorButton
public ColorButton()
- Constructs a color button with the null default color.
ColorButton
public ColorButton(Color defaultColor)
- Constructs a color button with the specified default color.
getColor
public Color getColor()
- Returns the selected color.
addItemListener
public void addItemListener(ItemListener l)
- Add a listener to recieve item events when the state of an item changes.
- See Also:
- ItemSelectable
removeItemListener
public void removeItemListener(ItemListener l)
- Removes an item listener.
- See Also:
- ItemSelectable
main
public static void main(String args[])
- Executes the examples.
All Packages Class Hierarchy This Package Previous Next Index