On Mar 3, 6:16 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> > We already increased the Heap Space, But still i am getting this
> >error. Actually we did increase the heapspace upto 1024MB. still java
[quoted text clipped - 7 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
Good articles. Thank you very much. Appreciate it.
On Mar 3, 6:16 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> > We already increased the Heap Space, But still i am getting this
> >error. Actually we did increase the heapspace upto 1024MB. still java
[quoted text clipped - 7 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
So, I'm curious because I noticed you said that Images need to be
flushed. What happens in the case when an Image is not actually
created, but only set...such as...
someObject.setImage(anImageIcon.getImage());
How is that handled? Should I be handling it?
Very informative site, BTW. Thank you for the link.
Roedy Green - 05 Mar 2008 08:05 GMT
On Tue, 4 Mar 2008 11:40:35 -0800 (PST), Jason Cavett
<jason.cavett@gmail.com> wrote, quoted or indirectly quoted someone
who said :
>someObject.setImage(anImageIcon.getImage());
what type is someObject. There is no method Object.setImage.
Presumably when you were done with the image you might
getImage().flush().
The images I work with tend to get loaded when the program starts and
hang around till it terminates.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Jason Cavett - 05 Mar 2008 17:48 GMT
On Mar 5, 3:05 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Tue, 4 Mar 2008 11:40:35 -0800 (PST), Jason Cavett
> <jason.cav...@gmail.com> wrote, quoted or indirectly quoted someone
[quoted text clipped - 13 lines]
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com
someObject is a TreeCellEditor. I set the image on the TreeCellEditor
so I can set icons on the JTree.
What I was thinking is that I may not need to flush due to the fact
that, when the TreeCellEditor is destroyed, it'll lose the references
to the image (since no other references are held anywhere).