I am creating custom Swing components and want to provide a UI that looks just like Nimbus.
I know how to access the UIDefaults colors, but can I reuse more code, particularly, is there a way to get an object that paints the focus rings (rectangular or oval, or even better, along any outline Shape) exactly like the other Nimbus components do? (without reinventing the wheel)
As I didn’t see any design decision in Nimbus to allow the reuse of painters for new components, and also I’m stuck on OS X with Java 6 and Nimbus being a moving (namespace) target, here is my solution which basically recreates what the Synth style is using: