EyeDropperColorChooserPanel is a pluggable panel for the {@link 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); } }); }
@author joshua@marinacci.org
|
|
|
|