Change Look And Feel - Online Code


This is a very useful code fragment which improves your Java application's Look and Feel better. There are various methods provided by the Java. Most of them are following. Besides using these methods you can also use third party Look and Feel's.

Note: I will suggest you to use the default System Look and Feel, instead of using other Look and Feel's because user is use too of his System's Look and Feel.

Source Code

STEP 1 - Get information about Installed Look and Feels

import javax.swing.UIManager;
public class System_Information

    public static void main(String args[])
        for ( UIManager.LookAndFeelInfo l :  UIManager.getInstalledLookAndFeels() )


Sample Output:



Note: After doing this, you can collect the all information about the installed Look and Feels class names. Now you can use any of them.

STEP 2 - Using the Look and Feels in Application

import java.awt.Container;
import java.awt.e
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.


No comment yet. Be the first to post a comment.