rm.nativeAddDirtyRegion(appContext, (Container)component,
x, y, w, h);
}
// For backward compatibility generate an empty paint
// event. Not doing this broke parts of Netbeans.
return new IgnorePaintEvent(component, PaintEvent.PAINT,
new Rectangle(x, y, w, h));
}
else if (component instanceof SwingHeavyWeight) {
AppContext appContext = SunToolkit.targetToAppContext(component);
RepaintManager rm = RepaintManager.currentManager(appContext);
rm.nativeAddDirtyRegion(appContext, (Container)component,
x, y, w, h);
return new IgnorePaintEvent(component, PaintEvent.PAINT,
new Rectangle(x, y, w, h));
}
return super.createPaintEvent(component, x, y, w, h);
}