For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
That is a lot of code to go through, so I am not.
Let me ask you this: I see you have a portion that is marked as recursive, do you recursively call the loading of the images? If you do therein is your problem.
Have you tried to define your Layout at level of the class as static attribute?You only require one.
Each time you use a BufferedImage, after painting the image invokes flush
picture.flush();
picture = null;
---
RuGI
Thanx for the answer.
Can you tell me, which lines are recursive?
It was not my intent to do a recursive call. If so, this could maybe the problem.
Yes, but didn't help.
The problem is solved. I don't use the class OverlayLayout anymore. The layout looks quite different, but now it works.