Search code examples
javaswingjframelook-and-feel

JFrame theme and appearance


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.


Solution

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

    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());