在网上是否有免费的Java Vista外观主题包?
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
在Vista上使用Java6u13可以展示出一个相当不错的Windows LookAndFeel。而且这是Java本身就具备的免费功能。
Sun has a tutorial on LookAndFeel usage here and if you want to play with the SwingSet demo, it shows you the System LookAndFeel and lets you change it. Then you can get an idea of what the LookAndFeel looks like. Calling
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
as dhiller suggests, will set the look and feel based on your system. If you wanted to see what the Vista look and feel looks like, you'll need Vista though.
另一个选择是使用Substance或Nimbus,如果你想要与Metal外观和感觉不同的东西。 Substance是一个单独的外观集合,Nimbus在6u10版本中可用。