Duplicate :
|
The java.awt.Color class caches instances of its PaintContext when anyone calls the createContext method. While this does not normally occur during typical rendering operations since the underlying graphics code special cases the Color object, it could potentially lead to excess resource consumption in an application that either invokes the createContext method directly or which uses a-typical rendering modes that don't special case the Color object.
|