<Swing Dev> [PATCH] GrayFilter cache
Igor Kushnirskiy
Igor.Kushnirskiy at Sun.COM
Wed Apr 30 20:25:50 UTC 2008
Hi Roman,
The patch looks great. However swing already has a few image caches.
It seems swing has at least two:
sun.swing.CachedPainter used at least for Windows l&f and gtk (synth) l&f
and
com.sun.java.swing.plaf.nimbus.ImageCache (in 6u10 source tree. Has not
been checked into jdk7 yet)
There were discussions on unifying them. Would not it be great to have a
single image cache used throughout swing sources (gray filtered images
included)?
Thanks,
Igor
Roman Kennke wrote:
> Hi,
>
>>> I'm not a swing developer, but I'd suggest to not use static field for
>>> cache, but have per-AppContext cache instead (due to security reasons)
>> Whoops. I have to get used to that .. Improved patch attached.
>
> No more opinions on that?
>
> Cheers, Roman
>
More information about the swing-dev
mailing list