是不是很多朋友都感觉Netbeans在Windows下不是很好看~
Java程序的外观都是由运行程序的操作系统和JDK版本所控制的。
嘎嘎,这个是Java程序的通病,今天我们来改变一下Netbeans的外观,我们每次看到的Netbeans的教程都是很好看的,都是Mac的样式,我们Windows的还不如在Linux下的那种好看。
其实,Netbeans提供了几种样式选择,只要我们在运行程序后面加上 –laf xxx
Windows – com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Metal – javax.swing.plaf.metal.MetalLookAndFeel
GTK – com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Nimbus – – Not available as default L&F, in development. It is our implementation of Nimbus GTK theme, which is the default theme for OpenSolaris.
Aqua – apple.laf.AquaLookAndFeel
Metal – javax.swing.plaf.metal.MetalLookAndFeel
GTK – com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Nimbus – – Not available as default L&F, in development. It is our implementation of Nimbus GTK theme, which is the default theme for OpenSolaris.
Aqua – apple.laf.AquaLookAndFeel
xxx由以上几项替换,效果如下:
Netbeans 6.5 on Vista with Nimbus Screenshot
Netbeans 6.5 with UML Plugin on Vista with Nimbus Screenshot
我喜欢的Metal风格,嘎嘎似乎是Java的默认的样式
这个酷酷的进度条,嘎嘎
希望大家心情好~