difficult problem with Toolkit.getDefaultToolkit

Hello guys

I am working on screenshot in Applet, at the moment i got one problem about Toolkit.getDefaultToolkit.

my code is working on windows, but doesn't work on Linux, no ideas

here is my code

MemoryImageSource is = new MemoryImageSource(width, height,

new DirectColorModel(24, 0xFF0000, 0xFF00, 0xFF),

pixels, 0, width);

Image img = Toolkit.getDefaultToolkit().createImage(is);

the code stopped to work in "Toolkit.getDefaultToolkit()", and no error message in the system log.

here is page header

<%@ page import="java.util.*,java.io.*,javax.imageio.*,java.awt.image.*,

java.awt.*,javax.servlet.*,javax.servlet.http.*,javax.imageio.stream.*" %>

if anyone can help...i will appreciate that

Gordon

[794 byte] By [gordon0908a] at [2007-11-26 20:07:57]
# 1
I may be wrong, but aren't the Toolkit methods reserved for applications, and you should be using applet methods like getDocumentBase?
Tavea at 2007-7-9 23:10:21 > top of Java-index,Java Essentials,Java Programming...
# 2
Sorry, I'm wrong: Toolkit can be used with applets.
Tavea at 2007-7-9 23:10:21 > top of Java-index,Java Essentials,Java Programming...