UIManager and LookAndfeel

xiaoxiao2021-03-06  40

I used UIManager.SetLookAndfeel, but only the three interface patterns of fixed. But now I know that LookandFeel can be customized, just like the CSS of the web page, you can give the application a unified style. LookAndfeel is an abstract class that provides some Static methods that also define some abstract personalized setting methods to be implemented by subclasses. Starting from JDK1.1.3, Sun offers three LookandFeel subclavab javax.swing.plaf.metal.MetallookandFeel, com.sun.java.swing.Plaf.Motif.Motiflookandfeel, com.sun.java.swing.Plaf.windows WindowsLookandFeel. They provide "Metal", "Motif" interface models of "Motif" and "Windows". That is, any SWING-based interface program itself can use the skin provided by three systems. In fact, we can also inherit the LookAndfeel class directly or indirectly, write a "skin". Http://www.l2fprod.com/ provides various "skin. He also provides a download for Java Web Start. http://www.l2fprod.com/javootoo.com/plaf/skinlf/ can preview Various "skin". I imagine the applet as Siebel, and it is also a good job in this regard, or how can his interface so good?

转载请注明原文地址:https://www.9cbs.com/read-77837.html

New Post(0)