@Override
  public Image getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight) {
    checkThreadViolations(c);
    return super.getVolatileOffscreenBuffer(c, proposedWidth, proposedHeight);
  }
@Override
  public Image getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)