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

  • MBP to HDMI looks fuzzy

    Why does the font on my 32-inch Samsung 1080p LCD TV look fuzzy when it is connected to my MBP via HDMI to Mini Display Port? It is only when it is connected to the MBP. When it is connected to my PS3 it is crystal clear. How can I fix this if at all

  • Azure Sync not saving access key in web portal

    Azure Sync not saving access key in web portal. You generate a new key, then press Ok and the key cannot be used and does not display again. Could someone please have a look at this?

  • Exporting Premiere sequence into specific Encore project

    Is there an "option" or drop down menu that would allow someone to specify an Encore project in which to export to from Premiere? I tried it through Adobe Bridge but it automatically opened a new Encore project. I also had my targeted Encore project

  • Am I unable to get icloud installed on my Mac OS X 10.6.8??

    I bought a new ipad today, and was trying to set up icloud on my macbook pro (OS X 10.6.8)... am I unable to do that?

  • Pointer on a function

    Hello, I Would like to use a DLL (written in C). An argument of a function of this DLL is a pointer to a function. How can I use the labview types to have acces to this function ? THanks for your help PS: I hope to be enough clear Remy CLAVERIE CESIU