davidchardonnet
Programmer
Hello everybody,
I encounter a strange problem. I have an applet which displays graphics in the paint() method and it works very well. But in some cases, the applet returns the exception below and the graphics don't display. Can you help me?
The problem occurs with IE 5.0 5.5 6.0
(not tested with netscape yet)
------------------------------------------
java.lang.IllegalArgumentException
at com/ms/awt/image/ImageRepresentation.offscreenInit (ImageRepresentation.java)
at com/ms/awt/image/Image.<init> (Image.java)
at com/ms/awt/ImageX.<init> (ImageX.java)
at com/ms/awt/WComponentPeer.createImage (WComponentPeer.java)
at java/awt/Component.createImage (Component.java)
at y.paint
at com/ms/awt/WComponentPeer.doClearAndPaint (WComponentPeer.java)
at com/ms/awt/WComponentPeer.paintNode (WComponentPeer.java)
at com/ms/ui/windowmanager/PaintRequest.run (PaintRequest.java)
at com/ms/ui/windowmanager/RunnableMessage.run (RunnableMessage.java)
at com/ms/awt/WSystemQueue.getMessage (WSystemQueue.java)
at com/ms/awt/WEventQueue.getNextEvent (WEventQueue.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
-------------------------------------
Thank you
David
I encounter a strange problem. I have an applet which displays graphics in the paint() method and it works very well. But in some cases, the applet returns the exception below and the graphics don't display. Can you help me?
The problem occurs with IE 5.0 5.5 6.0
(not tested with netscape yet)
------------------------------------------
java.lang.IllegalArgumentException
at com/ms/awt/image/ImageRepresentation.offscreenInit (ImageRepresentation.java)
at com/ms/awt/image/Image.<init> (Image.java)
at com/ms/awt/ImageX.<init> (ImageX.java)
at com/ms/awt/WComponentPeer.createImage (WComponentPeer.java)
at java/awt/Component.createImage (Component.java)
at y.paint
at com/ms/awt/WComponentPeer.doClearAndPaint (WComponentPeer.java)
at com/ms/awt/WComponentPeer.paintNode (WComponentPeer.java)
at com/ms/ui/windowmanager/PaintRequest.run (PaintRequest.java)
at com/ms/ui/windowmanager/RunnableMessage.run (RunnableMessage.java)
at com/ms/awt/WSystemQueue.getMessage (WSystemQueue.java)
at com/ms/awt/WEventQueue.getNextEvent (WEventQueue.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
-------------------------------------
Thank you
David