How to change the Default Look and Feel of Swing Applications


Picture:Clock Published on April 27th, 2006 in Java

Look and FeelHere’s a nice and easy way, to change the default look & feel of your Swing apps. By adding this line of code, you tell Swing, not to use the default looks of the Operating System it’s running on:

JFrame.setDefaultLookAndFeelDecorated(true);

This will be applied to all other frames in your application as well, as you should not use different designs within one application, because this would leave the user confused.

Share This

Trackback URL for this post:
http://www.yatblog.com/2006/04/27/how-to-change-the-default-look-and-feel-of-swing-applications/trackback/


Shout it out!