Package org.cytoscape.util.swing
Class CyColorChooser
java.lang.Object
org.cytoscape.util.swing.CyColorChooser
This is an annoying re-implementation of JColorChooser.showDialog() that remembers
recently used colors between invocations of the chooser dialog.
Cytoscape Backwards Compatibility (Static Class): This class is static and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
Module: swing-util-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>swing-util-api</artifactId> </dependency>
-
Method Summary
Modifier and TypeMethodDescriptionstatic Color
showDialog(Component parent, String title, Color initialColor)
Display custom color chooser dialog.
-
Method Details
-
showDialog
Display custom color chooser dialog.- Parameters:
parent
- parent component of this dialogtitle
- Title of this dialoginitialColor
- Initially selected color.- Returns:
- New Color or null if canceled.
-