Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
JColorChooser
| Modifier and Type | Field and Description |
|---|---|
| private Font | font
Hides java. |
| private int | |
| private Color | |
| private String | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private JColorChooser | |
| public Dimension | getPreferredSize()
Overrides javax. If the |
| private String | |
| public void | paintComponent(Graphics g)
Overrides javax. Calls the UI delegate's paint method, if the UI delegate
is non- |
| private int | |
| private int | |
| private int |
| font | back to summary |
|---|---|
| private Font font Hides java. | |
| innerGap | back to summary |
|---|---|
| private int innerGap | |
| oldColor | back to summary |
|---|---|
| private Color oldColor | |
| sampleText | back to summary |
|---|---|
| private String sampleText | |
| squareGap | back to summary |
|---|---|
| private int squareGap | |
| squareSize | back to summary |
|---|---|
| private int squareSize | |
| swatchWidth | back to summary |
|---|---|
| private int swatchWidth | |
| textGap | back to summary |
|---|---|
| private int textGap | |
| DefaultPreviewPanel | back to summary |
|---|---|
| pack-priv DefaultPreviewPanel() | |
| getColorChooser | back to summary |
|---|---|
| private JColorChooser getColorChooser() | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Overrides javax. Doc from javax. If the | |
| getSampleText | back to summary |
|---|---|
| private String getSampleText() | |
| paintComponent | back to summary |
|---|---|
| public void paintComponent(Graphics g) Overrides javax. Doc from javax. Calls the UI delegate's paint method, if the UI delegate
is non-
If you override this in a subclass you should not make permanent
changes to the passed in
The passed in | |
| paintSquares | back to summary |
|---|---|
| private int paintSquares(Graphics g, int offsetX) | |
| paintSwatch | back to summary |
|---|---|
| private int paintSwatch(Graphics g, int offsetX) | |
| paintText | back to summary |
|---|---|
| private int paintText(Graphics g, int offsetX) | |