Rounded Corners as a Swing Border

In order to get a desired effect in the Glazed Lists issues browser, I created a border with rounded corners, a la
Web 2.0. Implementing the painting logic was tedious, but not particularly difficult -- there's a lot of "magic-numbers" Java2D code to write, such as offsetting by the stroke width and figuring out the stroke angles.
If you want your Swing app to look Web 2.0, please take
RoundedBorder.java and contribute back your enhancements & fixes!
# posted by Jesse Wilson
on Tuesday, May 09, 2006