无法设置Java外观

无法设置Java外观,java,swing,netbeans,look-and-feel,Java,Swing,Netbeans,Look And Feel,我已经下载了java的外观。这是夸夸。它是以ZIP格式下载的。我的问题是如何将这种外观添加到我的程序中?我正在使用NetBeans 8。我在谷歌上搜索,发现结果不合适。 告诉我正确的程序。 谢谢。您可以像其他库一样将jar文件添加到类路径,并且在显示JFrame之前,您可以这样设置lnf: UIManager.setLookAndFeel(quaqualnf); ... JFrame frame = ... 如果您费心查看开发指南,您会发现: public class MyApplicatio

我已经下载了java的外观。这是夸夸。它是以ZIP格式下载的。我的问题是如何将这种外观添加到我的程序中?我正在使用NetBeans 8。我在谷歌上搜索,发现结果不合适。 告诉我正确的程序。
谢谢。

您可以像其他库一样将jar文件添加到类路径,并且在显示JFrame之前,您可以这样设置lnf:

UIManager.setLookAndFeel(quaqualnf);
...
JFrame frame = ...
如果您费心查看开发指南,您会发现:

public class MyApplication {
     public static void main(String[] args) {

         // set system properties here that affect Quaqua
         // for example the default layout policy for tabbed
         // panes:
         System.setProperty(
            "Quaqua.tabLayoutPolicy","wrap"

         );

         // set the Quaqua Look and Feel in the UIManager
         try {
              UIManager.setLookAndFeel(
                  ch.randelshofer.quaqua.QuaquaManager.getLookAndFeel();
              );
         // set UI manager properties here that affect Quaqua
         ...
         } catch (Exception e) {
             // take an appropriate action here
             ...
         }
         // insert your application initialization code here
         ...
     }
}

请告诉我正确的程序。不,我们不会,除非你告诉我们你到底试了什么。