•
•
•
•
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
![]() |
•
•
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation:
Rep Power: 2
Solved Threads: 6
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.
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
Seemingly
com.sun.java.swing.plaf.metal.MetalLookAndFeel
doesn't exist.
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
----------------------------------------------
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
•
•
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation:
Rep Power: 2
Solved Threads: 6
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.
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
----------------------------------------------
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Java Forum
- Previous Thread: Java Help
- Next Thread: java.net.SocketException: Connection reset by peer: socket write error



Linear Mode