Shannon Hickey, from the Swing team, just posted a comment on my java.net blog about gradients performance. He delivers another excellent trick to improve gradients performance. By just setting a parameter to
true in the constructor, you can turn your gradient into a cyclic gradient, thus yielding to 2x speed boost! Check out Shannon's comment for all the details.