for (int mX = x + (xOff); mX < (x + w); mX += 4)
for (int mX = x + xOff; mX < (x + w); mX += 4)
  static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h,                                Color light, Color dark)  {    //if (g instanceof Graphics2D)    if (false /* we don't have propper g2d in jnode yet, use the simple graphics here*/            && g instanceof Graphics2D)      fillMetalPattern2D((Graphics2D) g, x, y, w, h, light, dark);    else      {        int xOff = 0;        for (int mY = y; mY < (y + h); mY++)          {            // set color alternating with every line            if (((mY - y) % 2) == 0)              g.setColor(light);            else              g.setColor(dark);            for (int mX = x + (xOff); mX < (x + w); mX += 4)              {                g.drawLine(mX, mY, mX, mY);              }            // increase x offset            xOff++;            if (xOff > 3)              xOff = 0;          }        }  }