List of usage examples for java.awt Component isDoubleBuffered
public boolean isDoubleBuffered()
From source file:Main.java
public static void disableBuffer(Component comp, ArrayList<JComponent> dbcomponents) { if ((comp instanceof JComponent) && comp.isDoubleBuffered()) { JComponent jcomponent = (JComponent) comp; dbcomponents.add(jcomponent);/*from ww w . j a v a2 s . c o m*/ jcomponent.setDoubleBuffered(false); } if (comp instanceof Container) { Container container = (Container) comp; int count = container.getComponentCount(); if (count > 0) { for (int i = 0; i < count; i++) { Component component = container.getComponent(i); disableBuffer(component, dbcomponents); } } } }