for (int mX = x + (xOff); mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY);
for (int mX = x + (xOff); mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY); }   xOff++; if (xOff > 3) xOff = 0;
  static void fillMetalPattern(Graphics g, int x, int y, int w, int h,                                Color light, Color dark)  {    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;      }  }