All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.editor.ColorChoice
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----jp.kyasu.awt.KContainer
|
+----jp.kyasu.awt.Panel
|
+----jp.kyasu.editor.ColorChoice
- public class ColorChoice
- extends Panel
The ColorChoice
class presents a pop-up menu of choices
of colors.
- Version:
- 12 May 1998
- Author:
- Kazuki YASUMATSU
-
ColorChoice()
- Constructs a color choice with the null default color.
-
ColorChoice(Color)
- Constructs a color choice with the specified default color.
-
ColorChoice(Color, Color)
- Constructs a color choice with the specified default color and
foreground 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.
-
setEnabled(boolean)
- Enables or disables this choice.
ColorChoice
public ColorChoice()
- Constructs a color choice with the null default color.
ColorChoice
public ColorChoice(Color defaultColor)
- Constructs a color choice with the specified default color.
ColorChoice
public ColorChoice(Color defaultColor,
Color foreground)
- Constructs a color choice with the specified default color and
foreground color.
setEnabled
public synchronized void setEnabled(boolean b)
- Enables or disables this choice.
- Overrides:
- setEnabled in class KContainer
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