0

我正在使用 开发 Java 应用程序Netbeans,并且我想更改JFrame和 按钮的默认外观...

我用谷歌搜索了它,但找不到任何东西。

在 Visual Studio 中,我使用的是SkinCrafter.

是否有任何程序或插件可以让我更改应用程序的默认皮肤Netbeans

4

1 回答 1

0
try {
        // Set System L&F
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    // or UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
    // or UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel")
} 
catch (Exception e) {
   // handle exception
}

甲骨文网站关于

对于已安装的皮肤:

    for( LookAndFeelInfo info : UIManager.getInstalledLookAndFeels() ) {
        System.out.println( info.getName() );
    }
于 2013-05-23T13:23:55.977 回答