The big new feature of Squareness Look And Feel 2.0 is theme support. You can create your own themes by
subclassing
net.beeger.squareness.theme.SquarenessTheme or by creating theme files, which are ordinary
property files
that contain the color ids of the Squareness colors with their theme specific color values. It is highly
recommended
to use the Colorizer tool for the creation of such theme files. You can use
net.beeger.squareness.theme.PropertiesSquarenessTheme to load those theme files
If you don't don't have the source code of the application on which you want to use Squareness Look And
Feel
with an own color theme, a theme package is the right choice. A theme package is - though it has the
suffix
"slftp" (for Squareness Look And Feel Theme Package) - an ordinary ZIP file. It contains theme
files
(property files with the suffix "slft" for Squareness Look And Feel Theme) and themeselector.slfts
(slfts for Squareness Look And Feel Theme Selector). This file has only one line "currentTheme=nameoftheme.slft"
Put the theme package into the classpath of your application. You can also put both squareness.jar and
your
theme package into your jre/lib/ext directory. Thus both files will be in the classpath of each
application that
is started with this Java Runtime Environment. Squarness Look And Feel finds the theme selector if there
is one
in the current classpath and automatically loads the specified theme.
Take a look at the provided theme package and try it out. The included theme is a greyish color theme.
So
the difference should be visible.