Change default title bar in JFrame

This blog contains information about how to change the default boring title bar 
of a Java Swing Application and make your application look something like this:

Midnight Look And Feel JFrame

The magic is done by following 2 lines:

After adding this 2 lines your jframe will look like:

This will still work same as title bar but now when you apply any of your look and 
feel it will become like the first image. Not the exact copy because your look and 
feel will be different from the one (Midnight Skin Look And Feel) used to take the 
first picture.

%d bloggers like this: