if (! ENGINE.paintCachedImage(g, x, y, w, h, id, gtkState,
dir, value, visible, rtl))
{
ENGINE.startPainting(g, x, y, w, h, id, gtkState,
dir, value, visible, rtl);
Orientation orientation = (dir == JScrollBar.HORIZONTAL ?
Orientation.HORIZONTAL : Orientation.VERTICAL);
ENGINE.setRangeValue(context, id, value, min, max, visible);
ENGINE.paintSlider(g, context, id, gtkState,
ShadowType.OUT, "slider", x, y, w, h, orientation);
ENGINE.finishPainting();