@Builderboy2005 Yes I always did it with the method setImage("...") but now I have changed it like SPower tould me.
But let me ask one question: If I use setImage("...") whats up with the older image I had before.
Isn't there the java GC that gives the memory back?
That's true, GC will sometime give the memory back, but unfortunately GC doesn't do that immediately like Reference Counting would.
Oh I didn't know that. Is there a way to instruct the GC to give the memory back like delete in C++.
It does *not* run the Garbage collector manually, it just requests that the garbage collector be run. There is still no promise that any garbage will be collected.
@builderboy Didn't know that, thanks for the lesson!