Try out the NEW features by downloading an Early Access release of the NEW Java Platform. Java SE 6 Update 10 RC
|
Java SE 6 Update 10 Overview |
Nimbus
OverviewNimbus is a new cross-platform Swing look & feel, which packs many features and enhancements. It is not just another look and feel but with some exciting features:
UsageTo use the Nimbus Look & Feel, simply call the setLookAndFeel methods from UIManager:
try {
UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch (UnsupportedLookAndFeelException e) {
// handle exception
} catch (ClassNotFoundException e) {
// handle exception
} catch (InstantiationException e) {
// handle exception
} catch (IllegalAccessException e) {
// handle exception
}
Alternatively, you can either specify the L&F from swing.properties file or from a command line. To use the swing.properties files, specify the swing.defaultlaf property. The file (if exists) is located under <jre install>\lib:
# Swing properties swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeelTo specify the L&F from command line, use the following when running your Java application: -Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel Note: If you experience lost of text or UI, please see the D3D FAQ FeedbackPlease provide us feedback or send us your questions to the Swing & AWT Forum. |
Related DownloadsClass libraries and other products that may be used with the Java SE platform may be downloaded from the following links.
Related ResourcesRelated DownloadsPopular Topics
Sun ResourcesRelated SitesGetting Started? | ||
|
| ||||||||||||