java.awt.Container 's validate method not working with NULL layout
Hi again everyone.
I did an application, that sets null layout to the root container, to work with images at this container. After that i've noticed some problems with the "VALIDATE" method of the class java.awt.Container:
1. In my application I create some new containers and add images to them. The first thing i've noticed is that the container keeps the 0,0,0,0 bounds. I always have to set its bounds to the image bound. But i don't think thats a problem at all. The problem is that if I call the "setBounds" method before adding this new Container to the root container, It will not show the image, even if I call the "validate" method at the rootContainer after all these steps.
2. Ok, my image is on the screen. Now, after a few seconds, I need to remove it. So I call the remove method at the parent container of this new container created for the image and call "validate" at the rootContainer and nothing happens too. The image is still there.
3. In these 2 cases that I've mentioned, if i click in another window of my desktop an click back at the cvm window, the screen seems to refresh and I get the expected final result.
After checking your last build at the SVN, I think the problem might envolve the fact that I'm using NULL LAYOUT.
Can you help me?
Message was edited by: rfr