I just solved my "MetalLookandFeel-Problem": in the rt.jar of jdk1.2
there is still com.sun.java.swing.... Donīt know why..
You have just to add an "import com.sun.java.swing.*" to your java
files.
But in my case I then get:

willi:/home/projects/swing # java SwingSet
Error loading L&F: java.lang.IllegalArgumentException: Raster
ShortInterleavedRaster: width = 64 height = 64 #numDataElements 1 is
incompatible with ColorModel DirectColorModel: rmask=7c00 gmask=3e0
bmask=1f amask=0
Exception in thread "main" java.lang.NullPointerException
        at java.util.Hashtable.get(Compiled Code)
        at javax.swing.UIDefaults.get(Compiled Code)
        at javax.swing.MultiUIDefaults.get(Compiled Code)
        at javax.swing.UIDefaults.getUIClass(Compiled Code)
        at javax.swing.UIDefaults.getUI(Compiled Code)
        at javax.swing.UIManager.getUI(Compiled Code)
        at javax.swing.JPanel.updateUI(Compiled Code)
        at javax.swing.JPanel.<init>(Compiled Code)
        at javax.swing.JPanel.<init>(Compiled Code)
        at javax.swing.JRootPane.createGlassPane(Compiled Code)
        at javax.swing.JRootPane.<init>(Compiled Code)
        at javax.swing.JFrame.createRootPane(Compiled Code)
        at javax.swing.JFrame.frameInit(Compiled Code)
        at javax.swing.JFrame.<init>(Compiled Code)
        at SwingSet.main(Compiled Code)

Someone told me that there is a bug with 24bit color depth. But I have
only 16. And with 8 it didnīt work also.

Someone who has a hint for me: Many thanks!

willi


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to