ch.unizh.ini.friend.gui
Class ColorChooser
java.lang.Object
ch.unizh.ini.friend.gui.ColorChooser
public class ColorChooser
- extends Object
Adaptor for JColorChooser. The preview panel is changed and shows the LMS
values of the currently selected color.
- Version:
- $Revision: 1.2 $
- Author:
- Johann Gyger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
chooser
protected JColorChooser chooser
- Color chooser used to show the dialog
ColorChooser
public ColorChooser()
- Create a new instance.
showDialog
public Color showDialog(Component component,
String title,
Color initialColor)
- Show a modal color-chooser dialog.
- Parameters:
component
- Parent componenttitle
- Title of dialoginitialColor
- Inital color
- Returns:
- Selected or previous color if the user opted out