Kintzel Levente wrote:
Hi!
I have some problems with the UIManager.
I have created two skins named: "default" and "light".
When I start the application it will start with the default skin. And
I want if an action occures to change the skin in light from java
code. How can I do that? I read the javadoc for UIManager but it
seems not to be enough because it doesn't want to work. May be there
is something that I don't understand.
My code:
UIManager uim=new UIManager();
uim.init(null);
System.out.println("1."+uim.getSkin());
uim.setSkin("light");
System.out.println("2."+uim.getSkin());
uim.refresh();
System.out.println("3."+uim.getSkin());
The code is included in the doBuildTemplate method of a screen.
How can I associate a skin with a user?
Please answer me exactly, if you can. Maybe some examples can be the
best solution. Yhanks a lot!
Regards,
Levi
P.S. Changing the skin from vm works fine...
Check out my replacement for UIManager under proposals in cvs - it is
offers more functionality at a lower memory footprint.
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]