out of bounds exception although increasing heap space

Hello,

In my java application, there is a gif file with the size 6000 X 3500 . This file is 536 KB and i use this file with scroll bar.

My question is that although I increased heap space to 512, it still keep going to give "out of bounds" exception when i try to set new dimention to the frame bigger than (800, 1000).

How can I use my gif file with bigger frame?

[389 byte] By [FuRK@Na] at [2007-11-27 4:50:13]
# 1
There is no such exception.Are you talking about ArrayIndexOutOfBoundsException?OutOfMemoryError?Something else?
jverda at 2007-7-12 10:03:30 > top of Java-index,Java Essentials,New To Java...
# 2
Yes, it is "java.lang.OutOfMemoryError: Java heap space" error, sorry..
FuRK@Na at 2007-7-12 10:03:30 > top of Java-index,Java Essentials,New To Java...
# 3
that error occurs when the memory is full... try restaring your app server.
jorgechavez77a at 2007-7-12 10:03:30 > top of Java-index,Java Essentials,New To Java...
# 4
unfortunately it is not the solution of my problem but i decided to change my codes because I couldn't solve this problem
FuRK@Na at 2007-7-12 10:03:30 > top of Java-index,Java Essentials,New To Java...