I have a CustomForm and in its constructor i call show() before starting a Thread that will grab some images from the net. When the Thread has the images, it makes something like this:
I know there are better ways to do this, as this could drive to ClassCastException as in my case. Although I call show() before throwing the requester Thread, that doesn't guarantee the Form is already shown when the image arrives to the client.
Is there any easy and elegant way to be sure the Form is shown before starting the thread?? Or it's just better to implement some kind of requester interface to know who started the Thread, and to whom the Thread must call the update() method (to load the received images)??
Thanks and regards