I don't understand. I don't know how to do that.
When I double click on an icon, it should disappear from screen and from memory. So I thought the model object of the icon should get kicked from...
Type: Posts; User: Alice
I don't understand. I don't know how to do that.
When I double click on an icon, it should disappear from screen and from memory. So I thought the model object of the icon should get kicked from...
Mkay. :-/
Is there a way to test an object has been garbage collected? Or just a way to detect what references are linked to an object at runtime? There must be tools to check for memory leakage....
You are right. I forgot to clear that reference. (I feel so silly). The icon model is referenced from two places.
As a matter of fact, now that I took care of that reference, the model object...
Sweet of the both of you to reply so fast.
It's not that easy to post my code since the program does lots of other things I'd rather not divulge. If this post doesn't help make it clearer, I'll...
Sounds like the title of a spy novel, doesn't it? ;))
Actually I wrote a small MVC-type program that has icons (JLabel) on a screen (JPanel). The logic of the icons is managed by a model class....