![]()
Using a Skin Pack
Following is the structure for the webtablet skin pack:
/ice/ri/enhancedawt/skins/webtablet/{directory}/{images}
To use this skin pack (webtablet), you first create a SkinManager called webtabletSM, then set its skinPack property to webtablet.
To create a webtablet back button, create a new SkinnableButton, then set its skinManager property to webtabletSM and its skin property to backButton.
If you want to create a new SkinPack, use the following structure:
/ice/ri/advancedawt/skins/webtablet2/{directory}/{images}
Rather than packaging this directory structure into a JAR file and placing it on the classpath, you can decide to place this directory tree in the following location:
C:/skins/ice/ri/enhancedawt/skins/webtablet2/...
To use this new skin pack, just set the skinPack property of the webtabletSM SkinManager to webtablet2 and the directory property to C:/skins. The skins for all components are then loaded from the new skin pack, completely changing the look of the UI components.
Skins are not responsible for changing the layout of a user interface. This is done within the IDE, as it would be for any other Java user interface.
|
Copyright 2005. ICEsoft Technologies, Inc. http://www.icesoft.com |