revalidate() vs. repaint()?



Hi,

do I interpret the docs correctly that validate(), invalidate() and
revalidate() are only useful if I use a layout manager?
I know: "ALWAYS use a layout manager" :-), but if I don't a repaint() should
be enough, or am I wrong?

Regards,

René


.



Relevant Pages

  • Re: repaint method and design question
    ... The repaint() and revalidate() methods queue requests for the event-dispatching thread to call paintand validate, ... The invalidate() method just marks a component and all of its direct ancestors as requiring validation. ...
    (comp.lang.java.programmer)
  • Re: Layout performances
    ... efficiency of the layout manager. ... That is probably not the problem because a JScrollPane is a validate root. ... That means that a revalidate from anything inside the JScrollPane will ...
    (comp.lang.java.gui)
  • Re: ColumnLayout?
    ... Its a free layout manager. ... regards Jan Dieckmann ...
    (comp.lang.java.gui)
  • Re: Changing swing components
    ... > Invalidate the parent container and then call validate on it. ... you can just call revalidate(). ...
    (comp.lang.java.programmer)