<Swing Dev> <AWT Dev> Review request #3: 6852592 (revalidate() must be smarter)
Anthony Petrov
Anthony.Petrov at Sun.COM
Fri Jul 31 11:57:05 UTC 2009
Hi Chris,
On 07/31/2009 02:29 PM, Christopher Deckers wrote:
> public Container getValidateRoot()
> That method would never return null unless the component is not
> connected to a hierarchy leading to an applet or window. The code
By the way, generally I agree that such method would be useful in the
Component class, however I would like to avoid re-spinning the API
approval request that is currently being processed. Perhaps we could add
the method later under a separate CR.
Also we're going to introduce the package-private method
Container javax.swing.SwingUtilities.getValidateRoot(Container);
with this fix. But this method is going to treat CellRendererPane quite
specially - please refer to the
RepaintManager.addInvalidComponent()/JViewport.validateView() methods
for details. We discussed the issue with the Swing team yesterday and
came to a conclusion that we are not yet ready to make the
CellRendererPane a validate root. We could probably rework this later
with the separate CR as well.
--
best regards,
Anthony
More information about the swing-dev
mailing list