Re: revalidate() vs. repaint()?
- From: "A. Bolmarcich" <aggedor@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 18:05:18 -0000
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.
.
- References:
- revalidate() vs. repaint()?
- From: Rene Ruppert
- Re: revalidate() vs. repaint()?
- From: A. Bolmarcich
- Re: revalidate() vs. repaint()?
- From: Rene Ruppert
- revalidate() vs. repaint()?
- Prev by Date: Re: Difference between itemStateChanged and stateChanged for a JCheckBoxMenuItem
- Next by Date: Re: JMenu holding JButton instances - bug with 5.0?
- Previous by thread: Re: revalidate() vs. repaint()?
- Next by thread: JTable and CellRenderer to change background colors
- Index(es):