added object cache

This commit is contained in:
bancika
2011-01-21 20:39:53 +00:00
parent c51357f58c
commit d1603161a3
2 changed files with 1 additions and 2 deletions
@@ -96,7 +96,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
g2d.setColor(bodyColor);
g2d.fill(shape);
g2d.setComposite(oldComposite);
g2d.setStroke(Constants.BASIC_STROKE);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1));
g2d.setColor(componentState == ComponentState.SELECTED
|| componentState == ComponentState.DRAGGING ? SELECTION_COLOR : borderColor);
g2d.draw(shape);