Swing Looks ...Great (Part III Nimbus)
Nimbus comes already with JDK 1.6.

try {
for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (UnsupportedLookAndFeelException e) {
// handle exception
} catch (ClassNotFoundException e) {
// handle exception
} catch (InstantiationException e) {
// handle exception
} catch (IllegalAccessException e) {
// handle exception
}
[Code Snippet from:http://download.oracle.com/javase/6/docs/technotes/guides/jweb/otherFeatures/nimbus_laf.html]
The command line option
-Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
can be used as well.With NetBeans you can create a Nimbus mock-up in minutes (actually seconds).
Nimbus is a great look and feel. Something I recently blogged myself when switching from using the Metal look and feel with NetBeans to Nimbus. It's just a shame Oracle have decided to keep Metal as the default for Java 7.
Posted by Ben on November 30, 2010 at 04:13 PM CET #
Ugly.
Posted by bender on November 30, 2010 at 04:36 PM CET #
@Bender,
A very clear statement. Then I think you will like more the native and built-in "Metal" l&f,
thanks!,
adam
Posted by adam-bien.com on November 30, 2010 at 04:42 PM CET #