一:swing自带:
(new LookAndFeel());
(true);
(true);
二.一些比较帅气的look and feel
.Substance
这个项目的目的是提供一个流行的外观(look & feel)。这个外观(look & feel)联合了Windows XP和MacOS 10.4最好的特性并且需要JDK 5.0以上
将下列jar文件拷贝到你的程序的classpath中,然后将下列代码段加入到你main函数中
?q=http%3A%2F%%2Fbbs%%3Ftid%3D111%26amp%3Bextra%3Dpage%253D1
(注,其实我在别的文章中给出了一个例子,参见用java打造任意形状窗口一文中的的代码)
look and feel:
try {
(new SubstanceLookAndFeel());
("", false);
if (("") == null) {
(true);
(true);
}
("", "true");
(new SubstanceLightAquaTheme());//设置当前的主题风格,同样我 们还可以设置当前的按钮形状,水印风格等等
} catch (Exception e) {
("Oops! Something went wrong!");
}
look and feel
try {
(new SmoothLookAndFeel());
("", false);
} catch (Exception e) {
("Oops! Something went wrong!");
}
3. office/winxp/VisualStudio 2005 look and feel
try {
("");
//("");
//("");
("", false);
} catch (Exception e) {
("Oops! Something went wrong!");
}
参考资料: