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.

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.

commented: Thanks a lot......!! +1

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..!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.