Re: revalidate() vs. repaint()?



On 2005-04-28, Rene Ruppert <rene.ruppert@xxxxxxxxxxx> wrote:
> Hi,
>
>> The validate(), invalidate(), and revalidate() methods are useful if an
>> extension of Container overrides its doLayout() method, say to do
>> something other than the default behavior of invoking the
>> layoutContainer(Container) method of the LayoutManager of the Container.
>>
>> Using a custom Container that overrides its doLayout() method to
>> layout the Container is an alternative to using a custom LayoutManager.
>
> So this means, if I use setLayout(null), re/in/validate() is of no use,
> correct?

Whether it is of use depends on whether the doLayout() method has been
overridden to do something even when the LayoutManager is null.
.