Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 832
Jatin Avatar asked Oct 30 '12 12:10

Jatin


3 Answers

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

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
like image 148
Guillaume Polet Avatar answered Oct 28 '22 15:10

Guillaume Polet


Looks like you are using the Metal Look and Feel. Try using some other look and feel that might interest you.

Refer http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html, for more information.

like image 34
sreejit Avatar answered Oct 28 '22 15:10

sreejit


This will give you everything you want to know

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

UIManager.getSystemLookAndFeelClassName() will give you the most appropriate for the OS it's running on

like image 20
Richard Taylor Avatar answered Oct 28 '22 14:10

Richard Taylor