Tuesday, June 5, 2012

Nimbus Look and Feel Java Swing

2 comments
It is very easy to apply  Nimbus Look and Feel which was introduced in Java SE 6 update 10 release. Copy and past following code before creating the (GUI) Graphical User Interface


Nimbus Look and Feel

nimbus look and feel

Before Applying the Nimbus Look and Feel

Java Look and Feel


try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
            
        } catch (Exception ex) {
            // If the nibus is not available, GUI will set to the system's look and feel  
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        }

2 comments:

DruP said...

A picture is worth a thousand words
If you post a screenshot of your UI, like a before Nimbus and a after Nimbus view. It would help this post a lot..

Chathura Wijesinghe said...

sure ill upload thankx

Post a Comment