}
public void canvasSetRenderingMode() {
if (Monitor.MULTI_BUFFERING <= 0) return;
BufferCapabilities desiredCaps = new BufferCapabilities(
new ImageCapabilities(true), new ImageCapabilities(true),
Monitor.PAGE_FLIPPING ? FlipContents.BACKGROUND : null
);
Class<?> extBufCapClass = null;
try {
// Creates ExtendedBufferCapabilities via reflection to avoid problems with AccessControl