What happens on resize (and how can I force it to happen without resizing)?

Hello everybody!
After running into this for the umpteenth time, I have decided to ask somebody who knows better. So, here goes:
Often, when I change something in the layout of an applet or an application (e.g. removing a JComponent and replacing it with another one), it doesn't get updated. I need to resize the Application window or the AppletViewer window, and then the change is correctly displayed and everything works fine. For Applets, I figured out that I can pack() as a workaround, but this can have some nasty side effects. I haven't been able to find anything for Applets though (an Applet doesn't have a pack() method).
So, does anyone know what exactly happens when I resize that window and why then my changes to the layout are applied? And, more importantly, what I have to do to reproduce this effect without resizing?
Thanks a lot in advance,
Wojtek

Thanks for the reply! Doesn't work though (invalidate-revalidate was one of my first tries...):
- Applet has no revalidate().
- If I put all my stuff into an extra JPanel that I add to the Applet, and revalidate() the JPanel after changing the stuff in it, nothing happens, I still need to resize.
Any other ideas?

Similar Messages

Maybe you are looking for

  • How to delete the Request Number

    Hi all,              How to delete the Requset Number in Development Client.Already i transported this Req. Number to Tesing Client.

  • End user training material

    Hi Friends, i am looking for end user training material for A/R,A/P and CIN. if anybody have that please porvide me with the same. My Mail ID is [email protected] Thanks in Advance RK

  • Audio not in Sync with Video

    When I play back the video from the camera, the audio is not synchronized with the video. The video appears to be behind by about 2 seconds. Is this normal or is there some setting to correct the problem?

  • Error during invokation of webservices: "error: unknown java type:"

    hi, I'm having issues with invoking a webservice from the "WebLogic Test Client". The webservice exposes the methods from a stateless session EJB and Weblogic Workshop was used to create the webservice controls Weblogic version: 10.0 mp1 Pls. advise.

  • Why aren't all available titles accessible in browse mode?

    I finally got around to exploring iTMS. I hate the front pages -- they are too glossy and don't have any significant content. Eventually I discovered how to get to the "browse" listing. So, I am browsing the TV shows listings, and notice that there a