When does one need to call revalidate() on a swing component to make it refresh, and when not?

The basic rule is: never – swing internals will take care of it. The basic exception to the rule is adding/removing components at runtime or changes which effect layout in ways the system can’t know or for some reason doesn’t want to react to. While the exception is not very clearcut, it’s infrequency in “normal” … Read more