Skip to main content

Synth Week, Load Themes From Anywhere

Posted by gfx on September 21, 2005 at 3:10 AM PDT

Chase Away Those Fierce Nightmares

In Tiger and early Mustang builds, Synth falls short providing a versatile, efficient and easy to use way to load a theme. Only one method is offered to load a Synth theme, the mischievous SynthLookAndFeel.load(). Albeit easy to use, this method suffers from critical limitations.

When your program invokes it, two parameters must be specified: an input stream containing the XML theme and a Class used to resolve resources path. If the theme declares using the picture

Related Topics >>