Java tutorial
//package com.java2s; import java.awt.Component; import javax.swing.RepaintManager; public class Main { public static void disableDoubleBuffering(Component c) { RepaintManager currentManager = RepaintManager.currentManager(c); currentManager.setDoubleBufferingEnabled(false); } }