If I create a custom skin for a standard Pivot component (such as a Sheet),
how do I go about using it?

The following works fine, but associates the skin with all instances of
Sheet.
Theme.getTheme().set(Sheet.class, ModifiedTerraSheetSkin.class);

Is it possible to set a particular skin for a specific component instance?

org.apache.pivot.wtk.Component    defines    protected void setSkin(Skin
skin)
whose javadoc comment says 'Sets the skin, replacing any previous skin.'

However it throws an IllegalStateException if a "Skin is already installed."


Regards,

Chris

Reply via email to