Aswing Study Notes 4-dynamically switch skin on the main interface by calling the buttons on the panel!

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.