Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

2 Swing applets - problems

1 view
Skip to first unread message

John

unread,
Dec 2, 2002, 12:30:34 PM12/2/02
to
When I try to launch 2 Swing applets from the same HTML page, I get
the following error when I refresh the browser. IE6.0, JRE 1.4.0_02

java.lang.NullPointerException

at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:211)

at sun.awt.image.SunVolatileImage.createGraphics(SunVolatileImage.java:176)

at java.awt.image.VolatileImage.getGraphics(VolatileImage.java:223)

at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4708)

at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)

at javax.swing.JComponent.paint(JComponent.java:794)

at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)

at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)

at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)

at java.awt.Container.paint(Container.java:1268)

at sun.awt.RepaintArea.paint(RepaintArea.java:180)

at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)

at java.awt.Component.dispatchEventImpl(Component.java:3586)

at java.awt.Container.dispatchEventImpl(Container.java:1582)

at java.awt.Component.dispatchEvent(Component.java:3367)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Frank Breuer

unread,
Dec 2, 2002, 2:06:18 PM12/2/02
to
"John" wrote:

> When I try to launch 2 Swing applets from the same HTML page, I get
> the following error when I refresh the browser. IE6.0, JRE 1.4.0_02

Show us the code.

0 new messages