Hi!
I have a problem running Swing-applications with the new Blackdown JDK1.2.2 RC3.
The following program
---------------
import javax.swing.*;
public class UIManagerDefaults {
public static void main(String[] args) {
System.out.println("Default L&F: " + UIManager.getLookAndFeel().getName());
}
}
-------------
throws this error:
$ java -verbose UIManager
(... tons of debug info...)
[Loaded javax.swing.UIManager$1 from /home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded javax.swing.plaf.metal.MetalLookAndFeel from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded javax.swing.plaf.basic.BasicLookAndFeel from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded javax.swing.LookAndFeel from /home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
(... more debug info ...)
[Loaded java.awt.image.PixelInterleavedSampleModel from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
[Loaded java.lang.IllegalArgumentException from
/home/thomas/bla/jdk1.2.2/jre/lib/rt.jar]
Exception in thread "main" java.lang.Error: can't load
javax.swing.plaf.metal.MetalLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java, Compiled Code)
at javax.swing.UIManager.initialize(UIManager.java, Compiled Code)
at javax.swing.UIManager.maybeInitialize(UIManager.java, Compiled Code)
at javax.swing.UIManager.getLookAndFeel(UIManager.java, Compiled Code)
at UIManagerDefaults.main(UIManagerDefaults.java, Compiled Code)
So javax.swing.plaf.metal.MetalLookAndFeel is loaded in the first place, but then it
says it isn't?
When I override the default LAF to WindowsLAF the same thing happens.
I also tried the MotifLAF, and it works:
$ java -Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel
UIManagerDefaults
Default L&F: CDE/Motif
A friend of mine, who is using the JDK1.2.2 with the very same linux distribution
(Suse 6.3), has no such problems.
What's wrong with my system?
Any ideas?
Thomas
--
Thomas F�rster Mail: [EMAIL PROTECTED]
-------------------------------------------
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]