Re: revalidate() vs. repaint()?



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?

René


.



Relevant Pages

  • Re: revalidate() vs. repaint()?
    ... >> extension of Container overrides its doLayout() method, ... >> layoutContainer(Container) method of the LayoutManager of the Container. ...
    (comp.lang.java.gui)
  • Re: AWT Drag and Drop AnzeigeProblem
    ... public void doLayout() ... Causes this container to lay out its components. ... but should invoke the validate method ...
    (de.comp.lang.java)
  • Re: How to use a GroupBox?
    ... Container with an LayoutManager FlowLayout, ... arrangement #south. ... Ideally, I think, there would be a GroupBox view for Presenter. ...
    (comp.lang.smalltalk.dolphin)
  • Re: How to use a GroupBox?
    ... example two radio buttons in one container are dependent. ... LayoutManager when the containers are within ... how I use the GroupBox. ...
    (comp.lang.smalltalk.dolphin)
  • Re: Refresh a JPanel
    ... code of LayoutManager, Container and Component. ... any container) does *not* know how to size everything. ... The BorderLayout, for example, takes the minimum y-size and preferred x-size ...
    (comp.lang.java.programmer)