/** * Sets the background color of this <code>ColorHighlighter</code> and * notifies registered ChangeListeners. * * @param color the background color of this <code>Highlighter</code>, * or null, to clear any existing background color */ public void setBackground(Color color) { if (areEqual(color, getBackground())) return; background = color; fireStateChanged(); }
/** * Sets the background color of this <code>ColorHighlighter</code> and * notifies registered ChangeListeners. * * @param color the background color of this <code>Highlighter</code>, * or null, to clear any existing background color */ public void setBackground(Color color) { if (areEqual(color, getBackground())) return; background = color; fireStateChanged(); }
/** * Sets the background color of this <code>ColorHighlighter</code> and * notifies registered ChangeListeners. * * @param color the background color of this <code>Highlighter</code>, * or null, to clear any existing background color */ public void setBackground(Color color) { if (areEqual(color, getBackground())) return; background = color; fireStateChanged(); }
/** * Sets the background color of this <code>ColorHighlighter</code> and * notifies registered ChangeListeners. * * @param color the background color of this <code>Highlighter</code>, * or null, to clear any existing background color */ public void setBackground(Color color) { if (areEqual(color, getBackground())) return; background = color; fireStateChanged(); }
/** * Sets the background color of this <code>ColorHighlighter</code> and * notifies registered ChangeListeners. * * @param color the background color of this <code>Highlighter</code>, * or null, to clear any existing background color */ public void setBackground(Color color) { if (areEqual(color, getBackground())) return; background = color; fireStateChanged(); }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its background or selectedBackground color * (depending on the adapter's selected state) if != null. * Otherwise it does nothing. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ protected void applyBackground(Component renderer, ComponentAdapter adapter) { Color color = adapter.isSelected() ? getSelectedBackground() : getBackground(); if (color != null) { renderer.setBackground(color); } } /**
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its background or selectedBackground color * (depending on the adapter's selected state) if != null. * Otherwise it does nothing. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ protected void applyBackground(Component renderer, ComponentAdapter adapter) { Color color = adapter.isSelected() ? getSelectedBackground() : getBackground(); renderer.setBackground(blend(renderer.getBackground(), color)); }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its background or selectedBackground color * (depending on the adapter's selected state) if != null. * Otherwise it does nothing. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ protected void applyBackground(Component renderer, ComponentAdapter adapter) { Color color = adapter.isSelected() ? getSelectedBackground() : getBackground(); renderer.setBackground(blend(renderer.getBackground(), color)); }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its background or selectedBackground color * (depending on the adapter's selected state) if != null. * Otherwise it does nothing. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ protected void applyBackground(Component renderer, ComponentAdapter adapter) { Color color = adapter.isSelected() ? getSelectedBackground() : getBackground(); renderer.setBackground(blend(renderer.getBackground(), color)); }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its background or selectedBackground color * (depending on the adapter's selected state) if != null. * Otherwise it does nothing. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ protected void applyBackground(Component renderer, ComponentAdapter adapter) { Color color = adapter.isSelected() ? getSelectedBackground() : getBackground(); renderer.setBackground(blend(renderer.getBackground(), color)); }
Color tempColor = ((ColorHighlighter) jxTable.getHighlighters()[0]).getBackground();