/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its a darkened background to an unselected * adapter. Does nothing for selected cells. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ @Override protected void applyBackground(Component renderer, ComponentAdapter adapter) { if (adapter.isSelected()) return; // PENDING JW: really? That would be applying a absolute color, instead // of shading whatever the renderer has. Color background = getBackground(); if (background == null) { background = renderer.getBackground(); } // Change to the following // Color background = renderer.getBackground(); if (background != null) { renderer.setBackground(computeBackgroundSeed(background)); } }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its a darkened background to an unselected * adapter. Does nothing for selected cells. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ @Override protected void applyBackground(Component renderer, ComponentAdapter adapter) { if (adapter.isSelected()) return; // PENDING JW: really? That would be applying a absolute color, instead // of shading whatever the renderer has. Color background = getBackground(); if (background == null) { background = renderer.getBackground(); } // Change to the following // Color background = renderer.getBackground(); if (background != null) { renderer.setBackground(computeBackgroundSeed(background)); } }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its a darkened background to an unselected * adapter. Does nothing for selected cells. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ @Override protected void applyBackground(Component renderer, ComponentAdapter adapter) { if (adapter.isSelected()) return; // PENDING JW: really? That would be applying a absolute color, instead // of shading whatever the renderer has. Color background = getBackground(); if (background == null) { background = renderer.getBackground(); } // Change to the following // Color background = renderer.getBackground(); if (background != null) { renderer.setBackground(computeBackgroundSeed(background)); } }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its a darkened background to an unselected * adapter. Does nothing for selected cells. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ @Override protected void applyBackground(Component renderer, ComponentAdapter adapter) { if (adapter.isSelected()) return; // PENDING JW: really? That would be applying a absolute color, instead // of shading whatever the renderer has. Color background = getBackground(); if (background == null) { background = renderer.getBackground(); } // Change to the following // Color background = renderer.getBackground(); if (background != null) { renderer.setBackground(computeBackgroundSeed(background)); } }
/** * Applies a suitable background for the renderer component within the * specified adapter. <p> * * This implementation applies its a darkened background to an unselected * adapter. Does nothing for selected cells. * * @param renderer the cell renderer component that is to be decorated * @param adapter the ComponentAdapter for this decorate operation */ @Override protected void applyBackground(Component renderer, ComponentAdapter adapter) { if (adapter.isSelected()) return; // PENDING JW: really? That would be applying a absolute color, instead // of shading whatever the renderer has. Color background = getBackground(); if (background == null) { background = renderer.getBackground(); } // Change to the following // Color background = renderer.getBackground(); if (background != null) { renderer.setBackground(computeBackgroundSeed(background)); } }