Java Utililty Methods Component

List of utility methods to do Component

Description

The list of methods to do Component are organized into topic(s).

Method

voidsetDoubleBuffered(boolean doubleBuffer, Component component)
Modify the state of the double buffering on the component.
RepaintManager currentManager = RepaintManager.currentManager(component);
currentManager.setDoubleBufferingEnabled(doubleBuffer);
voidsetDoubleBufferedRecursively(final Component component, final boolean doubleBuffered)
Sets double buffered state of component and all of its children.
setDoubleBufferedRecursively(component, doubleBuffered, false);
voidsetNotBuffered(Component c)
Set Not Buffered.
if (c instanceof JComponent)
    ((JComponent) c).setDoubleBuffered(false);
if (c instanceof Container) {
    Component[] cc = ((Container) c).getComponents();
    for (int i = 0; i < cc.length; i++)
        setNotBuffered(cc[i]);