code: public static void enableDoubleBuffering(Component c)
      {
          RepaintManager currentManager = RepaintManager.currentManager(c);
          currentManager.setDoubleBufferingEnabled(true);
      }
docs: Turn the cache back on.
  @param c Component.