void (JComponent component, boolean doubleBuffered) { component.setDoubleBuffered(doubleBuffered); for (int i = 0; i < component.getComponentCount(); i++) { applyDoubledBuffered((JComponent)component.getComponent(i), doubleBuffered); } }