A Painter with Flare
I've just committed into the incubator the first draft of a new painter that I think could add a bit of sparkle to an application: LensFlarePainter.
[url https://jdnc-incubator.dev.java.net/demos/mattnathan/LensFlareDemo.jnlp ]Here's a demo[/url] (requires Java 6 due to the radial painting and things like that).
[url https://jdnc-incubator.dev.java.net/documentation/mattnathan/images/Lens... ]Here's a picture[/url] for those that don't have Java 6 installed.
Click or drag in the window to move the flare around.
As this is the first time I've ever tried to create this type of effect please post comments as to how you think it can be improved.