FileDocCategorySizeDatePackage
FullRepaintManager.javaAPI DocExample735Mon Jan 09 11:01:58 GMT 2006None

FullRepaintManager

public class FullRepaintManager extends RepaintManager

Fields Summary
Constructors Summary
Methods Summary
public voidaddDirtyRegion(javax.swing.JComponent comp, int x, int y, int w, int h)

        super.addDirtyRegion(comp,x,y,w,h);
        JComponent root = getRootJComponent(comp);
        // to avoid a recursive infinite loop
        if(comp != root) {
            super.addDirtyRegion(root,0,0,root.getWidth(),root.getHeight());
        }
    
public javax.swing.JComponentgetRootJComponent(javax.swing.JComponent comp)

        Container parent = comp.getParent();
        if(parent instanceof JComponent) {
            return getRootJComponent((JComponent)parent);
        }
        return comp;