title: How can I create a drop shadow, inner glow and outer glow in Java Swing?
body: <p>I am generating some images using the Graphics2D interface, and occasionally I'd like to be able to draw some text on the image and apply to it effects like the ones in Adobe Photoshop.</p>
  
  <p>Right now to generate a 'shadow' on the text I am drawing  the text twice, once in the original color, and once in black with a slight (1px) x&amp;y offset. Unfortunately this is overly simplistic as I need more control over the shadow (opacity,size, spread).</p>
  
  <p>As for Inner Glows and Outer Glows, I am not really sure where to start; a mask/gradient paint/alpha blending?</p>
  
  <p>Is there a Java library for producing these types of effects? If not how would you go about creating these effects?</p>