Path Gradient Paint in Java 2D?
I have used PathGradientPaint in .NET and would like to find a way to replicate it in Java2D.
Specifically, I'm trying to replicate the gradual shading of the button at the URL below which is easy in .NET:
I have searched the web via Google to no avail. I have created semi-transparent inner rectangles and then blurred and alpha-composited them on top of the background but this is just not as effective. I also tried using RadialGradientPaint for the corners and GradientPaint for the straight sides, but it just didn't look very good.
I could write my own Paint and PaintContext to do this, but would prefer not to reinvent the wheel.
Thanks in advance,