All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.gui.ColorListener

java.lang.Object
   |
   +----java.awt.event.MouseAdapter
           |
           +----org.jfouffa.jslider.gui.ColorListener

public class ColorListener
extends MouseAdapter
This class is a listener for a JButton that enables the edition of a Textfield by automatically showing a ColorDialog. This listener adds an EditorHandler to the ColorDialog it creates. This handler will update the textfield associated to your listener.


Constructor index

 o ColorListener(Frame, TextField)
Constructs a new ColorListener with the specified Frame as parent of the ColorDialog it automatically creates) and the specified TextField.

Method index

 o mouseClicked(MouseEvent)

Constructors

 o ColorListener
 public ColorListener(Frame parent,
                      TextField text)
Constructs a new ColorListener with the specified Frame as parent of the ColorDialog it automatically creates) and the specified TextField.

Parameters:
parent - the frame the ColorDialog created will use
text - the textfield that will be updated by the ColorDialog's hanlder

Methods

 o mouseClicked
 public void mouseClicked(MouseEvent e)
Overrides:
mouseClicked in class MouseAdapter