Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please read...bitmap graphics in paint() method generate an exception

Status
Not open for further replies.

davidchardonnet

Programmer
Mar 21, 2001
167
FR
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top