JFrame theme and appearance

Jatin picture Jatin · Oct 30, 2012 · Viewed 23.2k times · Source

I have a swing application. Below is a small screenshot. enter image description here

OS: Win 7

What is irritating is the theme. I have tried several other screens but they all have such appearance. Eclipse and Netbeans for example have a much better UI. The FileChooser and Frame is general is much pleasing. How do I have such a theme.

Thanks.

Answer

Guillaume Polet picture Guillaume Polet · Oct 30, 2012

Change the look and feel to the Windows one before creating anything UI-related in your program:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());