Class EyeDropperColorChooserPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class EyeDropperColorChooserPanel extends AbstractColorChooserPanel

EyeDropperColorChooserPanel is a pluggable panel for the JColorChooser which allows the user to grab any color from the screen using a magnifying glass.

Example usage:


    public static void main(String ... args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JColorChooser chooser = new JColorChooser();
                chooser.addChooserPanel(new EyeDropperColorChooserPanel());
                JFrame frame = new JFrame();
                frame.add(chooser);
                frame.pack();
                frame.setVisible(true);
            }
        });
    }
 
See Also: