}
}
else { // copied from JDK7 XPStyle. To make the code compilable under JDk6, we use RefectionUtils
boolean accEnabled = false;
Skin skin = (Skin) args[0];
Part part = skin.part;
State state = (State) args[1];
if (state == null) {
state = skin.state;
}
if (c == null) {
c = skin.component;
}
BufferedImage bi = (BufferedImage) image;
WritableRaster raster = bi.getRaster();
DataBufferInt dbi = (DataBufferInt) raster.getDataBuffer();
// Note that stealData() requires a markDirty() afterwards
// since we modify the data in it.
try {
ThemeReader.paintBackground(
(int[]) ReflectionUtils.callStatic(SunWritableRaster.class, "stealData", new Class[]{DataBufferInt.class, int.class}, new Object[]{dbi, 0}),
/*SunWritableRaster.stealData(dbi, 0),*/
part.getControlName(c), part.getValue(),
State.getValue(part, state),
0, 0, w, h, w);
ReflectionUtils.callStatic(SunWritableRaster.class, "markDirty", new Class[]{DataBuffer.class}, new Object[]{dbi});
// SunWritableRaster.markDirty(dbi);
}