0

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.

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Kusno
Featured Replies
  • 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. Read More

0

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.

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.

Votes + Comments
Thanks a lot......!!
0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.