Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
The fix for 6852592 made the invalidate() method stop on the nearest validate root when invalidating a component hierarchy. Initially we relied on the common pattern used in Swing applications: when they change a layout-related information, they (or the Swing library) should call the revalidate() method, e.g.: component.setSize(50, 50); component.revalidate(); In this case the revalidate() method would dispatch a validate() call on the nearest validate root, thus validating the invalid part of the component hierarchy. However, it turns out that some Swing applications rely on the old behavior of the invalidate() method and simply call: frame.validate(); instead of the revalidate() call. The frame is usually their top-level component (such as a JFrame or a JDialog). The fix for 6852592 made this call a no-op because the frame never gets invalidated.
|