Usually I don't do this, but I do not seem to get any attention on sun's Java Forum...
I have a piece of code, which uses the java awt library to insert
some text into an image. This piece of code runs perfectly fine
on a windows machine, but on a Linux box with Fedora Core 2,
a BufferedImage.getRGB() method call fails with the following
exception:
Code:
java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.getDataElements(IntegerInterleavedRaster.java:202)
at java.awt.image.BufferedImage.getRGB(BufferedImage.java:862)
at ThumbnailGenerationTestX.doThumbnailGenerationTest(ThumbnailGenerationTestX.java:94)
at ThumbnailGenerationTestX.main(ThumbnailGenerationTestX.java:29)
Here is the link to the thread at the sun forum:
http://forum.java.sun.com/thread.jsp...rt=0&trange=15
(You will find the code there....)
Does anyone have an idea?
Would hate to switch back to Windows just because
a small piece of code does not work...
PS: X-Server is running, DISPLAY variable is set, and I did xhost +...
Thanks, Rolf