How does it work ?

alice dubois alice.dubois at lemel.fr
Mon Dec 28 01:23:52 PST 1998


>Just if you want to display GIFs. In case you don't have one of the image 
libs,
>but try to load such a file, Toolkit.imgCreateFromFile (-> readGifFile,
>readJPegFile, readPngFile) should return '0', leaving the Image with a
>IMAGE_ERROR|IMAGE_ABORTED state. I guess you got the Exceptions in 
subsequent
>usage of these images?
>

For exemple, with Thursday 24 kaffe-snap, whithout change, when I run 
WidgetsDemo.sh ( with tvt.jpg) the image is not displayed and this error is 
caught:
java.lang.NullPointerException
        at java/awt/ImageFileProducer.startProduction(27)
        at java/awt/Image.loadImage(189)
        at java/awt/Image.getHeight(145)
        at WidgetsDemo.paint(381)
        at java/awt/Window.update(305)
        at java/awt/PaintEvent.dispatch(51)
        at java/awt/EventDispatchThread.show(127)
        at java/awt/WMEvent.dispatch(52)
        at java/awt/EventDispatchThread.run(38)          

If I replace tvt.jpg by linux.gif, I see the image and the exception is not 
caught.
( I use linux red-hat 5.1)

Alice


More information about the kaffe mailing list