Always forget how to enable it.
So put it in my blog to reference that quickly.
try {
for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (UnsupportedLookAndFeelException e) {
} catch (ClassNotFoundException e) {
} catch (InstantiationException e) {
} catch (IllegalAccessException e) {
}
Nimbus is really a nice and must-use vector look-and-feel.
Just compare it to the old metal:
Here you can get more information about Nimbus Look-And-Feel
http://download.oracle.com/javase/6/docs/technotes/guides/jweb/otherFeatures/nimbus_laf.html
0 Responses to “Enable Nimbus Look-And-Feel”