User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 402,683 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,404 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 378 | Replies: 4 | Solved
Reply
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation: Kusno is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster in Training

UIManager (MetalLookAndFeel) problem

  #1  
Apr 23rd, 2008
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.
NEVER NEVER NEVER GIVE UP
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,378
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 120
masijade's Avatar
masijade masijade is online now Online
Nearly a Posting Virtuoso

Re: UIManager (MetalLookAndFeel) problem

  #2  
Apr 23rd, 2008
Seemingly

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

doesn't exist.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation: Kusno is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster in Training

Re: UIManager (MetalLookAndFeel) problem

  #3  
Apr 23rd, 2008
Originally Posted by masijade View Post
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.
NEVER NEVER NEVER GIVE UP
Reply With Quote  
Join Date: Feb 2006
Posts: 1,378
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 120
masijade's Avatar
masijade masijade is online now Online
Nearly a Posting Virtuoso

Re: UIManager (MetalLookAndFeel) problem

  #4  
Apr 23rd, 2008
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.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation: Kusno is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster in Training

Re: UIManager (MetalLookAndFeel) problem

  #5  
Apr 23rd, 2008
Originally Posted by masijade View Post
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..!!!
NEVER NEVER NEVER GIVE UP
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Java Forum

All times are GMT -4. The time now is 5:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC