Package | Description |
---|---|
javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
javax.swing.colorchooser |
Contains classes and interfaces used by the
JColorChooser
component. |
Modifier and Type | Method and Description |
---|---|
ColorSelectionModel |
JColorChooser.getSelectionModel()
Returns the data model that handles color selections.
|
Modifier and Type | Method and Description |
---|---|
void |
JColorChooser.setSelectionModel(ColorSelectionModel newModel)
Sets the model containing the selected color.
|
Constructor and Description |
---|
JColorChooser(ColorSelectionModel model)
Creates a color chooser pane with the specified
ColorSelectionModel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultColorSelectionModel
A generic implementation of
ColorSelectionModel . |
Modifier and Type | Method and Description |
---|---|
ColorSelectionModel |
AbstractColorChooserPanel.getColorSelectionModel()
Returns the model that the chooser panel is editing.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.