public class ColorSwatchCellRenderer extends AbstractCellRenderer implements ListCellRenderer, TableCellRenderer
Modifier and Type | Field and Description |
---|---|
private JLabel |
renderer |
private static ColorSwatch |
swatch |
Constructor and Description |
---|
ColorSwatchCellRenderer()
Construct a new
ColorSwatchCellRenderer . |
Modifier and Type | Method and Description |
---|---|
protected JComponent |
getCellRenderer(JComponent component,
Object value,
int row,
int column)
Get the actual renderer component.
|
getListCellRendererComponent, getTableCellRendererComponent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getListCellRendererComponent
getTableCellRendererComponent
private static ColorSwatch swatch
public ColorSwatchCellRenderer()
ColorSwatchCellRenderer
.protected JComponent getCellRenderer(JComponent component, Object value, int row, int column)
AbstractCellRenderer
getCellRenderer
in class AbstractCellRenderer
component
- The JList
or JTable
for which
the renderer is being requested.value
- The value to render.row
- The row in the table or index in the list of the cell being
rendered.column
- The column in the table of the cell being rendered, (or 0
if a list).WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses