All predefined themes (YQ, Forest, Golden, Nightly, Plastic, Silver and Unicode) are now included in the JAR file. Additionally Tiny searches both the user directory and the working directory for theme files.
Theme.getAvailableThemes() returns an array of ThemeDescription objects. Once you have obtained the array, you can call ThemeDescription.getName() for each object to build a menu presenting the available themes. As a user selects a ThemeDescription, you can pass it as argument to Theme.loadTheme(ThemeDescription).
After loading a theme, you should re-install the Tiny Look and Feel and recreate the ui:
// re-install the Tiny Look and Feel
UIManager.setLookAndFeel(new TinyLookAndFeel());
// Update the ComponentUIs for all Components. This
// needs to be invoked for all windows.
SwingUtilities.updateComponentTreeUI(rootComponent);
(The javadoc documentation of the Theme class contains more information on theme switching.)
Partager