My answer wasn't really satisfying, so here's a complement.
> What you should to is to directly create Images instances using the
> BufferedImage class instead of obtaining them from a Frame.
BufferedImage has been available for a while, but it also requires an X server,
so trying to create a BufferedImage without one will throw an exception.
But it will work with a 1.4 JVM running in Headless mode. The Headless mode
can be activated by adding the parameter "java.awt.headless=true" to the
environment of the JVM, usually with a command-line option.
The documentation of this feature is exceptionnally vague. I quote from this
page: http://java.sun.com/products/java-
media/2D/forDevelopers/java2dfaq.html#bounds
"There's no way to say that a particular API does or doesn't have this problem;
it depends on what particular operations are being invoked, and might also
depend on what the application does with the images that isn't strictly related
to any of the APIs cited above."
So basically, try and see.
Best regards,
David Garnier
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Fri Jun 14 09:42:09 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT