How to improve look and feel of JAVA swing GUI?

Mandar picture Mandar · Apr 7, 2010 · Viewed 39.6k times · Source

I am working on a project that uses Java Swing. The default look and feel of the Java Swing GUI is very boring. Is there any way I can use a better look and feel? Something like on web pages...

Answer

Frederik Wordenskjold picture Frederik Wordenskjold · Apr 7, 2010

You can set the look and feel to reflect the platform:

try { 
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
    e.printStackTrace();
}

If this is not nice enough for you, take a look at SWT for Eclipse.