I'm able to set UIManager for
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")
and
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel")

but for UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel")
I get an error like this :
java.lang.ClassNotFoundException: com.sun.java.swing.plaf.metal.MetalLookAndFeel

What's wrong with my code ??

Thanks,

Kusno.

Seemingly

com.sun.java.swing.plaf.metal.MetalLookAndFeel

doesn't exist.

So, what should I do ?
I have searched in Google but dont get significant answers.

Could anyone help me ?

Thanks,

Kusno.

You could start by using the correct class

javax/swing/plaf/metal/MetalLookAndFeel

There is a file called classlist in the lib directory of the JRE which contains a complete listing of the classes in the JRE.

Comments
Thanks a lot......!!

You could start by using the correct class

javax/swing/plaf/metal/MetalLookAndFeel

There is a file called classlist in the lib directory of the JRE which contains a complete listing of the classes in the JRE.

Thanks, it works..!!!

This question has already been answered. Start a new discussion instead.