Document directory
- You can call the buttons in the panel to dynamically switch the skin on the main interface!
- Re: Call the button in the panel to dynamically switch the skin on the main interface!
- Re: Call the button in the panel to dynamically switch the skin on the main interface!
You can call the buttons in the panel to dynamically switch the skin on the main interface! Posted on:
Wednesday October 29By
Xueyuan cyzNow I am working on a dynamic skin switching function. The principle is to enable the overall skin replacement by clicking the skin switching button in the call panel.
The following are the buttons added to the Panel:
Public Function getbutton250 (E: Event): void {
Uimanager. setlookandfeel (New ppzhaolaf ());
Aswingutils. updateallcomponentui ();
}
Public Function getbutton251 (E: Event): void {
Uimanager. setlookandfeel (New orangelookandfeel ());
Aswingutils. updateallcomponentui ();
}
After the execution, the skin can be dynamically switched by pressing the button, and an error prompt box is displayed. The information is as follows:
Typeerror: Error #1009: the attribute or method referenced by the null object cannot be accessed.
At org. aswing. plaf. Basic: basictabbedpaneui/getdrawnabbounds () [D: \ Flash \ aswingtest \ SRC \ org \ aswing \ plaf \ basic \ basictabbedpaneui. As: 383]
At org. aswing. plaf. Basic: basictabbedpaneui/getmousedontabindex () [D: \ Flash \ aswingtest \ SRC \ org \ aswing \ plaf \ basic \ basictabbedpaneui. As: 178]
At Org. aswing. plaf. basic: basictabbedpaneui/_ ontabpanepressed () [D: \ Flash \ aswingtest \ SRC \ org \ aswing \ plaf \ basic \ basictabbedpaneui. as: 192]
If you have a limited level of brothers for a long time, you still have nothing to do. Please give me some advice! Thank you!
Re: Call the button in the panel to dynamically switch the skin on the main interface! Posted on:
Thursday, March 13, 2008 AMBy
IileyAre you using aswing 1.4 or the latest SVN version?
I remember that this problem exists in version 1.4 and was fixed later. How did you use the version on SVN? Re: Call the button in the panel to dynamically switch the skin on the main interface! Posted on:
Thursday October 30By
Xueyuan cyzThank you! The problem has been solved!