int newNumLines = determineNumLines(); if (numLines != newNumLines) { numLines = newNumLines; getContainer().repaint(); }
int oldNumLines = numLines; determineNumLines();  if (numLines != oldNumLines) preferenceChanged(this, false, true);
    void updateDamage (Rectangle a)    {      int newNumLines = determineNumLines();      if (numLines != newNumLines)        {          numLines = newNumLines;          getContainer().repaint();        }      else        getContainer().repaint(a.x, a.y, a.width, a.height);    }